magarena/release/Magarena/scripts/Veteran_of_the_Depths.groovy

28 lines
971 B
Groovy
Raw Normal View History

2013-05-17 21:01:46 -07:00
[
new MagicWhenBecomesTappedTrigger() {
2013-04-12 19:32:25 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent tapped) {
return (permanent == tapped) ?
new MagicEvent(
permanent,
new MagicSimpleMayChoice(
MagicSimpleMayChoice.ADD_PLUSONE_COUNTER,
1,
2013-05-17 21:01:46 -07:00
MagicSimpleMayChoice.DEFAULT_YES
),
2013-04-12 19:32:25 -07:00
this,
2013-05-17 21:01:46 -07:00
"PN may\$ put a +1/+1 counter on SN."
) :
2013-04-12 19:32:25 -07:00
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
if (event.isYes()) {
game.doAction(new MagicChangeCountersAction(event.getPermanent(),MagicCounterType.PlusOne,1,true));
}
}
2013-05-17 21:01:46 -07:00
}
]