From d1e319787c076438d74ecbb9db54459530b72a4f Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Sat, 2 Mar 2019 08:57:40 -0600 Subject: [PATCH] - Fixed #5609 --- Mage.Sets/src/mage/cards/t/TeferiHeroOfDominaria.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/cards/t/TeferiHeroOfDominaria.java b/Mage.Sets/src/mage/cards/t/TeferiHeroOfDominaria.java index 3872f22e2d..572aee3ed2 100644 --- a/Mage.Sets/src/mage/cards/t/TeferiHeroOfDominaria.java +++ b/Mage.Sets/src/mage/cards/t/TeferiHeroOfDominaria.java @@ -23,7 +23,7 @@ import mage.players.Player; import mage.target.common.TargetNonlandPermanent; import java.util.UUID; -import mage.cards.Card; +import mage.game.permanent.Permanent; /** * @author LevelX2 @@ -85,9 +85,9 @@ class TeferiHeroOfDominariaSecondEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); if (controller != null) { - Card card = game.getCard(getTargetPointer().getFirst(game, source)); - if (card != null) { - controller.putCardOnTopXOfLibrary(card, game, source, 3); + Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source)); + if (permanent != null) { + controller.putCardOnTopXOfLibrary(permanent, game, source, 3); } return true; }