From f99ba12b062f284759431d0332e377b3c8aef6ad Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 15 Jun 2013 18:05:57 +0200 Subject: [PATCH] * Paladin en-Vec - Fixed protection ability. --- Mage.Sets/src/mage/sets/ninthedition/PaladinEnVec.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Mage.Sets/src/mage/sets/ninthedition/PaladinEnVec.java b/Mage.Sets/src/mage/sets/ninthedition/PaladinEnVec.java index b68e87a3b8..17978b0edc 100644 --- a/Mage.Sets/src/mage/sets/ninthedition/PaladinEnVec.java +++ b/Mage.Sets/src/mage/sets/ninthedition/PaladinEnVec.java @@ -36,6 +36,7 @@ import mage.abilities.keyword.FirstStrikeAbility; import mage.abilities.keyword.ProtectionAbility; import mage.cards.CardImpl; import mage.filter.FilterCard; +import mage.filter.predicate.Predicates; import mage.filter.predicate.mageobject.ColorPredicate; /** @@ -43,12 +44,10 @@ import mage.filter.predicate.mageobject.ColorPredicate; * @author Loki */ public class PaladinEnVec extends CardImpl { - private static final FilterCard filterBlack = new FilterCard("Black"); - private static final FilterCard filterRed = new FilterCard("Red"); + private static final FilterCard protectionFilter = new FilterCard("black and from red"); static { - filterRed.add(new ColorPredicate(ObjectColor.BLACK)); - filterRed.add(new ColorPredicate(ObjectColor.RED)); + protectionFilter.add(Predicates.or(new ColorPredicate(ObjectColor.BLACK),new ColorPredicate(ObjectColor.RED))); } public PaladinEnVec(UUID ownerId) { @@ -64,8 +63,7 @@ public class PaladinEnVec extends CardImpl { // First strike this.addAbility(FirstStrikeAbility.getInstance()); // protection from black and from red - this.addAbility(new ProtectionAbility(filterBlack)); - this.addAbility(new ProtectionAbility(filterRed)); + this.addAbility(new ProtectionAbility(protectionFilter)); } public PaladinEnVec(final PaladinEnVec card) {