magarena/release/Magarena/scripts/Grave_Titan.groovy

41 lines
1.4 KiB
Groovy
Raw Normal View History

2013-05-26 05:08:46 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {
2012-06-17 05:19:08 -07:00
return new MagicEvent(
2012-09-21 21:11:03 -07:00
permanent,
this,
"PN puts two 2/2 black Zombie creature tokens onto the battlefield."
);
2012-06-17 05:19:08 -07:00
}
@Override
2013-05-26 05:08:46 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Zombie"),
2
));
2013-06-23 18:29:26 -07:00
}
2013-05-26 05:08:46 -07:00
},
new MagicWhenAttacksTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
return (permanent==creature) ?
2011-08-13 08:52:26 -07:00
new MagicEvent(
2012-09-21 21:11:03 -07:00
permanent,
this,
"PN puts two 2/2 black Zombie creature tokens onto the battlefield."
):
2011-09-04 01:19:43 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
2013-05-26 05:08:46 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Zombie"),
2
));
2013-06-23 18:29:26 -07:00
}
2013-05-26 05:08:46 -07:00
}
]