From da53bb14a179155df3478a64364db174aa45ad05 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Fri, 4 Feb 2022 14:23:10 -0600 Subject: [PATCH] [NEO] Awakened Awareness - Use StaticFilter --- Mage.Sets/src/mage/cards/a/AwakenedAwareness.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Mage.Sets/src/mage/cards/a/AwakenedAwareness.java b/Mage.Sets/src/mage/cards/a/AwakenedAwareness.java index a6784cd6be..ed28639948 100644 --- a/Mage.Sets/src/mage/cards/a/AwakenedAwareness.java +++ b/Mage.Sets/src/mage/cards/a/AwakenedAwareness.java @@ -11,8 +11,7 @@ import mage.abilities.effects.common.counter.AddCountersAttachedEffect; import mage.constants.*; import mage.abilities.effects.common.AttachEffect; import mage.counters.CounterType; -import mage.filter.FilterPermanent; -import mage.filter.predicate.Predicates; +import mage.filter.StaticFilters; import mage.game.Game; import mage.game.permanent.Permanent; import mage.target.TargetPermanent; @@ -26,19 +25,13 @@ import mage.cards.CardSetInfo; */ public final class AwakenedAwareness extends CardImpl { - private static final FilterPermanent filter = new FilterPermanent("artifact or creature"); - - static { - filter.add(Predicates.or(CardType.ARTIFACT.getPredicate(), CardType.CREATURE.getPredicate())); - } - public AwakenedAwareness(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{X}{U}{U}"); this.subtype.add(SubType.AURA); // Enchant artifact or creature - TargetPermanent auraTarget = new TargetPermanent(filter); + TargetPermanent auraTarget = new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE); this.getSpellAbility().addTarget(auraTarget); this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature)); this.addAbility(new EnchantAbility(auraTarget.getTargetName()));