From 58a01cac2a59da812a3d97d50c160d077b283e69 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 19 Aug 2014 16:34:47 +0200 Subject: [PATCH] * Caged Sun - Fixed that the mana adding ability did not work. --- Mage.Sets/src/mage/sets/newphyrexia/CagedSun.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/sets/newphyrexia/CagedSun.java b/Mage.Sets/src/mage/sets/newphyrexia/CagedSun.java index 8684effa12..45e52d3e50 100644 --- a/Mage.Sets/src/mage/sets/newphyrexia/CagedSun.java +++ b/Mage.Sets/src/mage/sets/newphyrexia/CagedSun.java @@ -169,10 +169,7 @@ class CagedSunTriggeredAbility extends TriggeredManaAbility { @Override public boolean checkTrigger(GameEvent event, Game game) { if (event.getType() == GameEvent.EventType.MANA_ADDED && event.getPlayerId().equals(controllerId)) { - Permanent permanent = game.getPermanent(event.getTargetId()); - if (permanent == null) { - permanent = (Permanent) game.getLastKnownInformation(event.getTargetId(), Zone.BATTLEFIELD); - } + Permanent permanent = game.getPermanentOrLKIBattlefield(event.getSourceId()); if (permanent != null && permanent.getCardType().contains(CardType.LAND)) { ObjectColor color = (ObjectColor) game.getState().getValue(this.sourceId + "_color"); if (color != null && event.getData().contains(color.toString())) {