From 0aeba13f30d6fcaab9a3d33a7e09bc0be94a9610 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 10 Mar 2015 01:34:25 +0100 Subject: [PATCH] * True-Name Nemesis - Fixed that the protection ability did not work correctly concerning abilities of cards of target player in graveyard (e.g. Vengeful Pharaoh). --- Mage.Sets/src/mage/sets/commander2013/TrueNameNemesis.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mage.Sets/src/mage/sets/commander2013/TrueNameNemesis.java b/Mage.Sets/src/mage/sets/commander2013/TrueNameNemesis.java index 5f3843b13b..fdd6816cb4 100644 --- a/Mage.Sets/src/mage/sets/commander2013/TrueNameNemesis.java +++ b/Mage.Sets/src/mage/sets/commander2013/TrueNameNemesis.java @@ -34,6 +34,7 @@ import mage.abilities.Ability; import mage.abilities.common.AsEntersBattlefieldAbility; import mage.abilities.effects.OneShotEffect; import mage.abilities.keyword.ProtectionAbility; +import mage.cards.Card; import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Outcome; @@ -154,6 +155,9 @@ class ProtectionFromPlayerAbility extends ProtectionAbility { if (source instanceof StackObject) { return !((StackObject) source).getControllerId().equals(playerId); } + if (source instanceof Card) { // e.g. for Vengeful Pharaoh + return !((Card) source).getOwnerId().equals(playerId); + } } return true; }