2013-05-18 03:42:51 -07:00
|
|
|
[
|
|
|
|
new MagicWhenOtherSpellIsCastTrigger() {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
2013-06-21 20:55:22 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicCardOnStack spell) {
|
2013-08-17 19:52:13 -07:00
|
|
|
return permanent.isFriend(spell) && spell.isSpell(MagicType.Instant) ?
|
2013-04-12 19:32:25 -07:00
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
new MagicMayChoice(
|
|
|
|
new MagicPayManaCostChoice(MagicManaCost.create("{1}"))
|
|
|
|
),
|
|
|
|
this,
|
2013-05-18 03:42:51 -07:00
|
|
|
"PN may\$ pay {1}\$. If you do, draw a card."
|
|
|
|
):
|
2013-04-12 19:32:25 -07:00
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
2013-06-23 18:29:26 -07:00
|
|
|
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
2013-05-18 03:42:51 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:32:25 -07:00
|
|
|
if (event.isYes()) {
|
2013-06-21 20:55:22 -07:00
|
|
|
game.doAction(new MagicDrawAction(event.getPlayer()));
|
2013-04-12 19:32:25 -07:00
|
|
|
}
|
|
|
|
}
|
2013-05-18 03:42:51 -07:00
|
|
|
}
|
|
|
|
]
|