magarena/release/Magarena/scripts/Back_to_Nature.groovy

19 lines
637 B
Groovy
Raw Normal View History

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(
cardOnStack,
this,
"Destroy all enchantments."
);
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
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
}
]