2013-05-25 20:19:25 -07:00
|
|
|
[
|
|
|
|
new MagicWhenAttacksTrigger() {
|
2012-06-17 05:19:08 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
|
|
|
|
return (permanent==creature) ?
|
2011-08-14 00:57:54 -07:00
|
|
|
new MagicEvent(
|
2012-09-22 01:59:21 -07:00
|
|
|
permanent,
|
|
|
|
new MagicMayChoice(
|
2013-02-27 00:47:39 -08:00
|
|
|
new MagicPayManaCostChoice(MagicManaCost.create("{R}")),
|
2012-09-22 01:59:21 -07:00
|
|
|
MagicTargetChoice.NEG_TARGET_CREATURE
|
|
|
|
),
|
|
|
|
new MagicNoCombatTargetPicker(false,true,false),
|
|
|
|
this,
|
2013-05-25 20:19:25 -07:00
|
|
|
"You may\$ pay {R}\$. If you do, target creature\$ can't block this turn."
|
2012-09-22 01:59:21 -07:00
|
|
|
):
|
2011-09-04 01:19:43 -07:00
|
|
|
MagicEvent.NONE;
|
2012-06-17 05:19:08 -07:00
|
|
|
}
|
2013-06-23 18:29:26 -07:00
|
|
|
|
2012-06-17 05:19:08 -07:00
|
|
|
@Override
|
2013-03-22 22:00:53 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-03-22 19:26:50 -07:00
|
|
|
if (event.isYes()) {
|
2013-03-21 06:35:09 -07:00
|
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
2011-08-30 06:31:13 -07:00
|
|
|
public void doAction(final MagicPermanent creature) {
|
2013-07-06 23:57:29 -07:00
|
|
|
game.doAction(new MagicGainAbilityAction(creature,MagicAbility.CannotBlock));
|
2012-06-17 05:19:08 -07:00
|
|
|
}
|
2011-08-30 06:31:13 -07:00
|
|
|
});
|
2012-06-17 05:19:08 -07:00
|
|
|
}
|
|
|
|
}
|
2013-05-25 20:19:25 -07:00
|
|
|
}
|
|
|
|
]
|