magarena/release/Magarena/scripts/Adventuring_Gear.groovy

24 lines
873 B
Groovy
Raw Normal View History

2013-03-17 23:10:09 -07:00
[
new MagicLandfallTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-08-29 23:12:15 -07:00
public MagicEvent getEvent(final MagicPermanent permanent) {
2012-06-17 05:19:08 -07:00
final MagicPermanent equippedCreature = permanent.getEquippedCreature();
2012-08-29 23:12:15 -07:00
return equippedCreature.isValid() ?
2011-09-07 10:56:39 -07:00
new MagicEvent(
permanent,
2012-08-29 23:12:15 -07:00
permanent.getController(),
equippedCreature,
2011-09-07 10:56:39 -07:00
this,
2012-08-29 23:12:15 -07:00
"Equipped creature gets +2/+2 until end of turn.") :
2011-09-07 10:56:39 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2011-09-07 10:56:39 -07:00
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicChangeTurnPTAction(event.getRefPermanent(),2,2));
2012-06-17 05:19:08 -07:00
}
2013-03-17 23:10:09 -07:00
}
]