magarena/release/Magarena/scripts/Thatcher_Revolt.groovy

28 lines
1.1 KiB
Groovy
Raw Normal View History

2013-05-19 01:15:21 -07:00
[
new MagicSpellCardEvent() {
2013-04-12 19:32:25 -07:00
@Override
2013-06-15 18:11:36 -07:00
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
2013-04-12 19:32:25 -07:00
return new MagicEvent(
cardOnStack,
this,
"PN puts three 1/1 red Human creature " +
"tokens with haste onto the battlefield. Sacrifice " +
"those tokens at the beginning of the next end step."
);
}
@Override
2013-05-19 01:15:21 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:32:25 -07:00
final MagicPlayer player = event.getPlayer();
2013-10-23 20:02:10 -07:00
final MagicCardDefinition token = TokenCardDefinitions.get("1/1 red Human creature tokens with haste");
2013-04-12 19:32:25 -07:00
for (int x=3;x>0;x--) {
final MagicPutIntoPlayAction action = new MagicPlayTokenAction(player, token);
game.doAction(action);
game.doAction(new MagicAddTriggerAction(
2013-04-12 19:32:25 -07:00
action.getPermanent(),
MagicAtEndOfTurnTrigger.Sacrifice
2013-04-12 19:32:25 -07:00
));
}
}
2013-05-19 01:15:21 -07:00
}
]