magarena/release/Magarena/scripts/Adventuring_Gear.groovy

21 lines
702 B
Groovy

[
new MagicLandfallTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
final MagicPermanent equippedCreature = permanent.getEquippedCreature();
return equippedCreature.isValid() ?
new MagicEvent(
permanent,
equippedCreature,
this,
"RN gets +2/+2 until end of turn."
) :
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(event.getRefPermanent(),2,2));
}
}
]