magarena/release/Magarena/scripts/Bounteous_Kirin.groovy

26 lines
879 B
Groovy
Raw Normal View History

[
2013-06-23 02:49:11 -07:00
new MagicWhenYouCastSpiritOrArcaneTrigger() {
@Override
2013-06-23 02:49:11 -07:00
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicCardOnStack cardOnStack) {
return new MagicEvent(
permanent,
new MagicSimpleMayChoice(
MagicSimpleMayChoice.GAIN_LIFE,
cardOnStack.getConvertedCost(),
MagicSimpleMayChoice.DEFAULT_YES
),
cardOnStack.getConvertedCost(),
this,
"You may gain RN life."
);
}
2013-06-23 18:29:26 -07:00
@Override
2013-06-15 03:20:38 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
if (event.isYes()) {
2013-06-23 02:49:11 -07:00
game.doAction(new MagicChangeLifeAction(event.getPlayer(), event.getRefInt()));
}
}
}
]