From ea13abc6a03433953b5837b6732f7ed4db065119 Mon Sep 17 00:00:00 2001 From: Loki Date: Wed, 6 Jun 2012 15:59:24 +0300 Subject: [PATCH] fix Apostle's Blessing --- Mage.Sets/src/mage/sets/newphyrexia/ApostlesBlessing.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/newphyrexia/ApostlesBlessing.java b/Mage.Sets/src/mage/sets/newphyrexia/ApostlesBlessing.java index 54af5406d90..713ed081beb 100644 --- a/Mage.Sets/src/mage/sets/newphyrexia/ApostlesBlessing.java +++ b/Mage.Sets/src/mage/sets/newphyrexia/ApostlesBlessing.java @@ -103,8 +103,10 @@ class ApostlesBlessingEffect extends GainAbilityTargetEffect { public boolean apply(Game game, Ability source) { ChoiceColorOrArtifact choice = (ChoiceColorOrArtifact) source.getChoices().get(0); if (choice.isArtifactSelected()) { - protectionFilter.getCardType().add(Constants.CardType.ARTIFACT); - protectionFilter.setScopeCardType(ComparisonScope.Any); + if (!protectionFilter.getCardType().contains(CardType.ARTIFACT)) { + protectionFilter.getCardType().add(Constants.CardType.ARTIFACT); + protectionFilter.setScopeCardType(ComparisonScope.Any); + } } else { protectionFilter.setColor(choice.getColor()); protectionFilter.setUseColor(true); @@ -112,6 +114,7 @@ class ApostlesBlessingEffect extends GainAbilityTargetEffect { } protectionFilter.setMessage(choice.getChoice()); + ((ProtectionAbility)ability).setFilter(protectionFilter); Permanent creature = game.getPermanent(source.getFirstTarget()); if (creature != null) { creature.addAbility(ability, game);