magarena/release/Magarena/scripts/Kragma_Warcaller.groovy

20 lines
717 B
Groovy

[
new MagicWhenAttacksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
return (creature.isFriend(permanent) && creature.hasSubType(MagicSubType.Minotaur)) ?
new MagicEvent(
permanent,
creature,
this,
"RN gets +2/0 until end of turn."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(event.getRefPermanent(),2,0));
}
}
]