Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kevlahnota committed Jul 14, 2023
1 parent 67969d1 commit 52aa55b
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1431,12 +1431,7 @@ public Object vote(final SpellAbility sa, final String prompt, final List<Object
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();
Expand Down

0 comments on commit 52aa55b

Please sign in to comment.