magarena/release/Magarena/scripts/Adventuring_Gear.groovy

21 lines
706 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicLandfallTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
final MagicPermanent equippedCreature = permanent.getEquippedCreature();
return equippedCreature.isValid() ?
new MagicEvent(
2013-06-15 07:01:56 -07:00
permanent,
equippedCreature,
this,
"RN gets +2/+2 until end of turn."
) :
2013-04-12 19:58:51 -07:00
MagicEvent.NONE;
}
@Override
2013-06-15 07:01:56 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
game.doAction(new MagicChangeTurnPTAction(event.getRefPermanent(),2,2));
}
}
]