2013-04-01 06:46:44 -07:00
|
|
|
[
|
|
|
|
new MagicWhenDamageIsDealtTrigger() {
|
2012-06-17 05:19:08 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
2011-08-14 01:15:39 -07:00
|
|
|
final MagicPermanent equippedCreature=permanent.getEquippedCreature();
|
2012-06-17 05:19:08 -07:00
|
|
|
return (damage.getSource() == equippedCreature &&
|
2011-08-14 01:15:39 -07:00
|
|
|
damage.getTarget().isPlayer() &&
|
|
|
|
damage.isCombat()) ?
|
2012-06-17 05:19:08 -07:00
|
|
|
new MagicEvent(
|
2013-04-01 06:46:44 -07:00
|
|
|
permanent,
|
|
|
|
permanent.getController(),
|
|
|
|
damage.getTarget(),
|
|
|
|
this,
|
2013-04-01 07:30:47 -07:00
|
|
|
"RN discards a card."
|
2013-04-01 06:46:44 -07:00
|
|
|
) :
|
2011-09-04 01:19:43 -07:00
|
|
|
MagicEvent.NONE;
|
2012-06-17 05:19:08 -07:00
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(
|
2011-08-13 02:16:33 -07:00
|
|
|
final MagicGame game,
|
2013-03-22 22:00:53 -07:00
|
|
|
final MagicEvent event) {
|
2012-10-06 20:32:09 -07:00
|
|
|
game.addEvent(new MagicDiscardEvent(event.getSource(),event.getRefPlayer(),1,false));
|
2012-06-17 05:19:08 -07:00
|
|
|
}
|
2013-04-01 06:46:44 -07:00
|
|
|
}
|
|
|
|
]
|