move Scythe Tiger incomplete to scripts by adding groovy script

master
melvin 2013-01-13 21:54:28 +08:00
parent abcd64e5c6
commit 1e83239e11
2 changed files with 31 additions and 1 deletions

View File

@ -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()));
}
}
}
]

View File

@ -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