magarena/release/Magarena/scripts/Serene_Heart.groovy

19 lines
556 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Destroy all Auras."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicDestroyAction(
game.filterPermanents(MagicTargetFilter.TARGET_AURA)
));
}
}
]