25 lines
802 B
Groovy
25 lines
802 B
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(
|
|
final MagicGame game,
|
|
final MagicPermanent permanent,
|
|
final MagicPayedCost payedCost) {
|
|
return (game.getCreatureDiedThisTurn()) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"PN puts a 2/2 black Zombie creature token onto the battlefield."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicPlayTokenAction(
|
|
event.getPlayer(),
|
|
TokenCardDefinitions.get("Zombie")
|
|
));
|
|
}
|
|
}
|
|
]
|