2013-05-18 19:50:43 -07:00
|
|
|
[
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
2012-06-17 05:19:08 -07:00
|
|
|
@Override
|
2013-06-19 07:23:35 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
|
2012-06-17 05:19:08 -07:00
|
|
|
return new MagicEvent(
|
2012-09-02 00:48:41 -07:00
|
|
|
permanent,
|
|
|
|
MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
|
2013-05-18 19:50:43 -07:00
|
|
|
new MagicDamageTargetPicker(permanent.getPower()),
|
2012-09-02 00:48:41 -07:00
|
|
|
this,
|
2013-05-18 19:50:43 -07:00
|
|
|
"SN deals damage equal to its power to target creature or player\$."
|
|
|
|
);
|
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) {
|
2012-09-02 00:48:41 -07:00
|
|
|
final MagicPermanent permanent=event.getPermanent();
|
2013-03-21 06:35:09 -07:00
|
|
|
event.processTarget(game,new MagicTargetAction() {
|
2011-08-30 06:31:13 -07:00
|
|
|
public void doAction(final MagicTarget target) {
|
2013-03-02 01:18:30 -08:00
|
|
|
final MagicDamage damage=new MagicDamage(permanent,target,permanent.getPower());
|
2011-08-30 06:31:13 -07:00
|
|
|
game.doAction(new MagicDealDamageAction(damage));
|
|
|
|
}
|
2012-06-17 05:19:08 -07:00
|
|
|
});
|
|
|
|
}
|
2013-05-18 19:50:43 -07:00
|
|
|
}
|
|
|
|
]
|