From 9dd5f66c64ab18869e4f6bbb2c303d46403e77ef Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 27 May 2015 18:31:43 +0200 Subject: [PATCH] Removed code not needed from Isperia (#1003). --- Mage.Sets/src/mage/sets/dissension/IsperiaTheInscrutable.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/sets/dissension/IsperiaTheInscrutable.java b/Mage.Sets/src/mage/sets/dissension/IsperiaTheInscrutable.java index cad4312255..b7363b81be 100644 --- a/Mage.Sets/src/mage/sets/dissension/IsperiaTheInscrutable.java +++ b/Mage.Sets/src/mage/sets/dissension/IsperiaTheInscrutable.java @@ -68,7 +68,6 @@ public class IsperiaTheInscrutable extends CardImpl { // Whenever Isperia the Inscrutable deals combat damage to a player, name a card. That player reveals his or her hand. If he or she reveals the named card, search your library for a creature card with flying, reveal it, put it into your hand, then shuffle your library. Effect effect1 = new NameACardEffect(NameACardEffect.TypeOfName.ALL); - // you need to set the target pointer so you can get the Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(effect1, true, true); Effect effect2 = new IsperiaTheInscrutableEffect(); ability.addEffect(effect2); @@ -106,9 +105,8 @@ class IsperiaTheInscrutableEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { Player player = game.getPlayer(getTargetPointer().getFirst(game, source)); - MageObject sourceObject = game.getObject(source.getSourceId()); Object object = (String) game.getState().getValue(source.getSourceId().toString() + NameACardEffect.INFO_KEY); - if (player != null && sourceObject != null && object instanceof String) { + if (player != null && object instanceof String) { String namedCard = (String) object; for (Card card : player.getHand().getCards(game)) { if (card != null && card.getName().equals(namedCard)) {