2013-02-16 03:56:10 -08:00
|
|
|
[
|
|
|
|
new MagicWhenDiesTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicPermanent permanent) {
|
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
this,
|
|
|
|
"PN puts a 4/4 red Bird creature token with flying onto the battlefield at the beginning of the next end step."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void executeEvent(
|
|
|
|
final MagicGame outerGame,
|
2013-03-22 22:00:53 -07:00
|
|
|
final MagicEvent event) {
|
2013-02-16 03:56:10 -08:00
|
|
|
//insert trigger to act at the beginning of the next end step
|
2013-03-09 21:41:47 -08:00
|
|
|
outerGame.doAction(new MagicAddTriggerAction(new MagicAtEndOfTurnTrigger() {
|
2013-02-16 03:56:10 -08:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final eotPlayer) {
|
2013-03-09 21:06:12 -08:00
|
|
|
game.doAction(new MagicPlayTokenAction(
|
|
|
|
game.getPlayer(event.getPlayer().getIndex()),
|
|
|
|
TokenCardDefinitions.get("Bird4")
|
|
|
|
));
|
2013-03-09 21:41:47 -08:00
|
|
|
game.addDelayedAction(new MagicRemoveTriggerAction(this));
|
2013-02-16 03:56:10 -08:00
|
|
|
return MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|