mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
update
This commit is contained in:
@@ -1431,12 +1431,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
|||||||
public boolean confirmReplacementEffect(final ReplacementEffect replacementEffect, final SpellAbility effectSA,
|
public boolean confirmReplacementEffect(final ReplacementEffect replacementEffect, final SpellAbility effectSA,
|
||||||
GameEntity affected, final String question) {
|
GameEntity affected, final String question) {
|
||||||
if (GuiBase.getInterface().isLibgdxPort()) {
|
if (GuiBase.getInterface().isLibgdxPort()) {
|
||||||
CardView cardView;
|
return this.getGui().confirm(effectSA.getCardView(), question.replaceAll("\n", " "));
|
||||||
if (effectSA.getView() != null)
|
|
||||||
cardView = effectSA.getView().getHostCard();
|
|
||||||
else
|
|
||||||
cardView = effectSA.getCardView();
|
|
||||||
return this.getGui().confirm(cardView, question.replaceAll("\n", " "));
|
|
||||||
} else {
|
} else {
|
||||||
final InputConfirm inp = new InputConfirm(this, question, effectSA);
|
final InputConfirm inp = new InputConfirm(this, question, effectSA);
|
||||||
inp.showAndWait();
|
inp.showAndWait();
|
||||||
|
|||||||
Reference in New Issue
Block a user