magarena/release/Magarena/scripts/Thatcher_Revolt.groovy

30 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
public MagicEvent getEvent(
final MagicCardOnStack cardOnStack,
final MagicPayedCost payedCost) {
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();
final MagicCardDefinition token = TokenCardDefinitions.get("Human2");
for (int x=3;x>0;x--) {
final MagicPutIntoPlayAction action = new MagicPlayTokenAction(player, token);
game.doAction(action);
game.doAction(new MagicChangeStateAction(
action.getPermanent(),
MagicPermanentState.SacrificeAtEndOfTurn,true
));
}
}
2013-05-19 01:15:21 -07:00
}
]