move Scythe Tiger incomplete to scripts by adding groovy script
parent
abcd64e5c6
commit
1e83239e11
|
@ -0,0 +1,29 @@
|
|||
[
|
||||
new MagicWhenComesIntoPlayTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
new MagicMayChoice(MagicTargetChoice.TARGET_LAND_YOU_CONTROL),
|
||||
MagicSacrificeTargetPicker.create(),
|
||||
this,
|
||||
"You may sacrifice a land. If you don't, sacrifice SN."
|
||||
);
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object[] choiceResults) {
|
||||
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
|
||||
event.processTargetPermanent(game,choiceResults,1,new MagicPermanentAction() {
|
||||
public void doAction(final MagicPermanent land) {
|
||||
game.doAction(new MagicSacrificeAction(land));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
game.doAction(new MagicSacrificeAction(event.getPermanent()));
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
|
@ -7,5 +7,6 @@ type=Creature
|
|||
subtype=Cat
|
||||
cost={G}
|
||||
pt=3/2
|
||||
ability=shroud,enters sac land or sac self
|
||||
ability=shroud
|
||||
timing=main
|
||||
requires_groovy_code
|
Loading…
Reference in New Issue