24 lines
770 B
Groovy
24 lines
770 B
Groovy
[
|
|
new MagicWhenYouCastSpiritOrArcaneTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack spell) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
new MagicSimpleMayChoice(
|
|
MagicSimpleMayChoice.DRAW_CARDS,
|
|
1,
|
|
MagicSimpleMayChoice.DEFAULT_NONE
|
|
),
|
|
this,
|
|
"PN may\$ draw a card."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
if (event.isYes()) {
|
|
game.doAction(new MagicDrawAction(event.getPlayer()));
|
|
}
|
|
}
|
|
}
|
|
]
|