2013-03-18 02:51:37 -07:00
|
|
|
[
|
|
|
|
new MagicSpellCardEvent() {
|
2012-06-17 05:19:08 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
2013-06-07 01:44:36 -07:00
|
|
|
cardOnStack,
|
|
|
|
this,
|
|
|
|
"Destroy all enchantments."
|
|
|
|
);
|
2012-06-17 05:19:08 -07:00
|
|
|
}
|
|
|
|
@Override
|
2013-06-07 01:44:36 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2012-10-07 07:41:53 -07:00
|
|
|
final Collection<MagicPermanent> targets=
|
|
|
|
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_ENCHANTMENT);
|
2012-06-17 05:19:08 -07:00
|
|
|
game.doAction(new MagicDestroyAction(targets));
|
|
|
|
}
|
2013-03-18 02:51:37 -07:00
|
|
|
}
|
|
|
|
]
|