19 lines
652 B
Groovy
19 lines
652 B
Groovy
[
|
|
new MagicWhenOtherSpellIsCastTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack spell) {
|
|
return (spell.isFriend(permanent) && spell.isSpell(MagicType.Enchantment)) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"PN draw a card."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicDrawAction(event.getPlayer()));
|
|
}
|
|
}
|
|
]
|