From 52aa55b886e8b615a2750de5f08d03df4aba4fa8 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Fri, 14 Jul 2023 12:40:23 +0800 Subject: [PATCH] update --- .../src/main/java/forge/player/PlayerControllerHuman.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java b/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java index 7fc748ff94c..7f80d3e2aeb 100644 --- a/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java +++ b/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java @@ -1431,12 +1431,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont public boolean confirmReplacementEffect(final ReplacementEffect replacementEffect, final SpellAbility effectSA, GameEntity affected, final String question) { if (GuiBase.getInterface().isLibgdxPort()) { - CardView cardView; - if (effectSA.getView() != null) - cardView = effectSA.getView().getHostCard(); - else - cardView = effectSA.getCardView(); - return this.getGui().confirm(cardView, question.replaceAll("\n", " ")); + return this.getGui().confirm(effectSA.getCardView(), question.replaceAll("\n", " ")); } else { final InputConfirm inp = new InputConfirm(this, question, effectSA); inp.showAndWait();