26 lines
882 B
Groovy
26 lines
882 B
Groovy
[
|
|
new MagicWhenPutIntoGraveyardTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicGraveyardTriggerData triggerData) {
|
|
return (triggerData.fromLocation == MagicLocationType.Play) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"PN puts two 1/1 white Spirit creature " +
|
|
"tokens with flying onto the battlefield."
|
|
) :
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event) {
|
|
game.doAction(new MagicPlayTokensAction(
|
|
event.getPlayer(),
|
|
TokenCardDefinitions.get("Spirit2"),
|
|
2
|
|
));
|
|
}
|
|
}
|
|
]
|