From e4fb9a6217eae496662c72ca5c6e6fad9300a0b4 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 19 Apr 2018 23:04:03 +0200 Subject: [PATCH] * Shalai, Voice of Plenty - Fixed that it also gave wrongly hexproof to itself. --- Mage.Sets/src/mage/cards/s/ShalaiVoiceOfPlenty.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/cards/s/ShalaiVoiceOfPlenty.java b/Mage.Sets/src/mage/cards/s/ShalaiVoiceOfPlenty.java index 22effec5adc..9ef1c4fc4f2 100644 --- a/Mage.Sets/src/mage/cards/s/ShalaiVoiceOfPlenty.java +++ b/Mage.Sets/src/mage/cards/s/ShalaiVoiceOfPlenty.java @@ -47,10 +47,10 @@ import mage.constants.SubType; import mage.constants.SuperType; import mage.constants.Zone; import mage.counters.CounterType; +import mage.filter.StaticFilters; import mage.filter.common.FilterControlledCreaturePermanent; import mage.filter.common.FilterControlledPermanent; import mage.filter.predicate.mageobject.CardTypePredicate; -import mage.filter.predicate.permanent.AnotherPredicate; /** * @@ -59,12 +59,9 @@ import mage.filter.predicate.permanent.AnotherPredicate; public class ShalaiVoiceOfPlenty extends CardImpl { private static final FilterControlledPermanent filter1 = new FilterControlledPermanent("planeswalkers you control"); - private static final FilterControlledPermanent filter2 = new FilterControlledPermanent(); static { filter1.add(new CardTypePredicate(CardType.PLANESWALKER)); - filter2.add(new CardTypePredicate(CardType.CREATURE)); - filter2.add(new AnotherPredicate()); } public ShalaiVoiceOfPlenty(UUID ownerId, CardSetInfo setInfo) { @@ -85,7 +82,7 @@ public class ShalaiVoiceOfPlenty extends CardImpl { effect = new GainAbilityControlledEffect(HexproofAbility.getInstance(), Duration.WhileOnBattlefield, filter1); effect.setText(", planeswalkers you control"); ability.addEffect(effect); - effect = new GainAbilityControlledEffect(HexproofAbility.getInstance(), Duration.WhileOnBattlefield, filter2); + effect = new GainAbilityControlledEffect(HexproofAbility.getInstance(), Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_CREATURES, true); effect.setText(", and other creatures you control have hexproof"); ability.addEffect(effect); this.addAbility(ability);