magarena/release/Magarena/scripts/Saprazzan_Heir.groovy

28 lines
939 B
Groovy
Raw Normal View History

2013-04-01 06:45:33 -07:00
[
new MagicWhenBecomesBlockedTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-10-07 02:07:52 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocked) {
return (permanent == blocked) ?
2012-09-21 19:57:04 -07:00
new MagicEvent(
permanent,
new MagicSimpleMayChoice(
MagicSimpleMayChoice.DRAW_CARDS,
1,
2012-10-07 02:07:52 -07:00
MagicSimpleMayChoice.DEFAULT_NONE
),
2012-09-21 19:57:04 -07:00
this,
"PN may$ draw three cards."
):
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
if (event.isYes()) {
2012-08-30 07:05:25 -07:00
game.doAction(new MagicDrawAction(event.getPlayer(),3));
2012-06-17 05:19:08 -07:00
}
}
2013-04-01 06:45:33 -07:00
}
]