2013-05-18 03:43:56 -07:00
|
|
|
[
|
|
|
|
new MagicSpellCardEvent() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
cardOnStack,
|
|
|
|
this,
|
|
|
|
"Destroy all creatures you don't control. They can't be regenerated."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
final Collection<MagicPermanent> targets =
|
2013-06-23 18:29:26 -07:00
|
|
|
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOUR_OPPONENT_CONTROLS);
|
2013-05-18 03:43:56 -07:00
|
|
|
for (final MagicPermanent target : targets) {
|
2013-06-21 23:40:39 -07:00
|
|
|
game.doAction(MagicChangeStateAction.Set(target,MagicPermanentState.CannotBeRegenerated));
|
2013-05-18 03:43:56 -07:00
|
|
|
}
|
|
|
|
game.doAction(new MagicDestroyAction(targets));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|