28 lines
1021 B
Groovy
28 lines
1021 B
Groovy
|
[
|
||
|
new MagicWhenOtherPutIntoGraveyardFromPlayTrigger() {
|
||
|
@Override
|
||
|
public MagicEvent executeTrigger(
|
||
|
final MagicGame game,
|
||
|
final MagicPermanent permanent,
|
||
|
final MagicPermanent otherPermanent) {
|
||
|
return (permanent != otherPermanent &&
|
||
|
otherPermanent.isFriend(permanent) &&
|
||
|
otherPermanent.isCreature() &&
|
||
|
!otherPermanent.hasSubType(MagicSubType.Spirit)) ?
|
||
|
new MagicEvent(
|
||
|
permanent,
|
||
|
this,
|
||
|
"PN puts a 1/1 white Spirit creature " +
|
||
|
"token with flying onto the battlefield."):
|
||
|
MagicEvent.NONE;
|
||
|
}
|
||
|
@Override
|
||
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||
|
game.doAction(new MagicPlayTokenAction(
|
||
|
event.getPlayer(),
|
||
|
TokenCardDefinitions.get("Spirit2")
|
||
|
));
|
||
|
}
|
||
|
}
|
||
|
]
|