1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-03-13 01:09:53 -09:00

Correcting Stomp and Howl

This commit is contained in:
vereena42 2017-01-03 09:09:50 +01:00
parent add95c8a63
commit 476e4e87a1

View file

@ -31,9 +31,8 @@ import mage.abilities.effects.common.DestroyMultiTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.FilterPermanent;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.target.TargetPermanent;
import mage.target.common.TargetArtifactPermanent;
import mage.target.common.TargetEnchantmentPermanent;
import java.util.UUID;
/**
@ -42,20 +41,12 @@ import java.util.UUID;
*/
public class StompAndHowl extends CardImpl {
private static final FilterPermanent filterArtifact = new FilterPermanent("artifact");
private static final FilterPermanent filterEnchantment = new FilterPermanent("enchantment");
static {
filterArtifact.add(new CardTypePredicate(CardType.ARTIFACT));
filterEnchantment.add(new CardTypePredicate(CardType.ENCHANTMENT));
}
public StompAndHowl(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{G}");
// Destroy target artifact and target enchantment.
this.getSpellAbility().addTarget(new TargetPermanent(filterArtifact));
this.getSpellAbility().addTarget(new TargetPermanent(filterEnchantment));
this.getSpellAbility().addTarget(new TargetArtifactPermanent());
this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
this.getSpellAbility().addEffect(new DestroyMultiTargetEffect());
}