This commit is contained in:
jeffwadsworth 2019-03-02 08:57:40 -06:00
parent 68fed7f600
commit d1e319787c

View file

@ -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;
}