2013-05-28 01:30:27 -07:00
|
|
|
[
|
|
|
|
new MagicSpellCardEvent() {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
2013-05-28 01:30:27 -07:00
|
|
|
cardOnStack,
|
|
|
|
MagicTargetChoice.NEG_TARGET_PLAYER,
|
|
|
|
this,
|
|
|
|
"SN deals 1 damage to each creature target player\$ " +
|
|
|
|
"controls. Each creature dealt damage this way attacks " +
|
|
|
|
"this turn if able."
|
|
|
|
);
|
2013-04-12 19:32:25 -07:00
|
|
|
}
|
|
|
|
@Override
|
2013-05-28 01:30:27 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:32:25 -07:00
|
|
|
event.processTargetPlayer(game,new MagicPlayerAction() {
|
|
|
|
public void doAction(final MagicPlayer targetPlayer) {
|
|
|
|
final Collection<MagicPermanent> targets = game.filterPermanents(
|
|
|
|
targetPlayer,
|
|
|
|
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
|
|
|
|
for (final MagicPermanent target : targets) {
|
|
|
|
final MagicDamage damage = new MagicDamage(
|
|
|
|
event.getSource(),
|
|
|
|
target,
|
|
|
|
1
|
|
|
|
);
|
|
|
|
game.doAction(new MagicDealDamageAction(damage));
|
|
|
|
if (damage.getDealtAmount() > 0) {
|
2013-07-06 23:57:29 -07:00
|
|
|
game.doAction(new MagicGainAbilityAction(
|
2013-04-12 19:32:25 -07:00
|
|
|
target,
|
|
|
|
MagicAbility.AttacksEachTurnIfAble
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2013-05-28 01:30:27 -07:00
|
|
|
}
|
|
|
|
]
|