[ new MagicWhenDamageIsDealtTrigger() { @Override public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) { final int amount=damage.getDealtAmount(); final MagicPlayer player=permanent.getController(); return (amount > 0 && damage.getTarget() == player && damage.getSource().getController() != player) ? new MagicEvent( permanent, amount, this, "Put RN +1/+1 counters on SN." ): MagicEvent.NONE; } @Override public void executeEvent(final MagicGame game, final MagicEvent event) { game.doAction(new MagicChangeCountersAction( event.getPermanent(), MagicCounterType.PlusOne, event.getRefInt(), true )); } } ]