2013-05-29 22:28:01 -07:00
|
|
|
[
|
2013-06-22 06:19:12 -07:00
|
|
|
new MagicWhenBlocksOrBecomesBlockedTrigger() {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
2013-06-22 06:19:12 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
|
2013-04-12 19:32:25 -07:00
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
2013-06-22 06:19:12 -07:00
|
|
|
permanent == blocker ? blocker.getBlockedCreature() : blocker,
|
2013-04-12 19:32:25 -07:00
|
|
|
this,
|
2013-06-22 06:19:12 -07:00
|
|
|
"SN deals 3 damage to RN."
|
2013-04-12 19:32:25 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
2013-05-29 22:28:01 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:32:25 -07:00
|
|
|
final MagicDamage damage = new MagicDamage(
|
|
|
|
event.getPermanent(),
|
|
|
|
event.getRefPermanent(),
|
|
|
|
3
|
|
|
|
);
|
|
|
|
game.doAction(new MagicDealDamageAction(damage));
|
|
|
|
}
|
2013-05-29 22:28:01 -07:00
|
|
|
}
|
|
|
|
]
|