* Shalai, Voice of Plenty - Fixed that it also gave wrongly hexproof to itself.

This commit is contained in:
LevelX2 2018-04-19 23:04:03 +02:00
parent 7ff67b30fa
commit e4fb9a6217

View file

@ -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);