41 lines
1.4 KiB
Groovy
41 lines
1.4 KiB
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer player) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"PN puts two 2/2 black Zombie creature tokens onto the battlefield."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicPlayTokensAction(
|
|
event.getPlayer(),
|
|
TokenCardDefinitions.get("Zombie"),
|
|
2
|
|
));
|
|
}
|
|
},
|
|
new MagicWhenAttacksTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
|
|
return (permanent==creature) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"PN puts two 2/2 black Zombie creature tokens onto the battlefield."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicPlayTokensAction(
|
|
event.getPlayer(),
|
|
TokenCardDefinitions.get("Zombie"),
|
|
2
|
|
));
|
|
}
|
|
}
|
|
]
|