From b2fb2d6a0777c7b9472cc8a07aa96957d0325db1 Mon Sep 17 00:00:00 2001 From: Agetian Date: Sat, 1 Dec 2012 15:59:39 +0000 Subject: [PATCH] - When the user is asked whether he wants to pay the sacrifice cost, the card for which the sacrifice cost is paid will be highlighted on the playfield. --- src/main/java/forge/GameActionUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/forge/GameActionUtil.java b/src/main/java/forge/GameActionUtil.java index bda18eecd20..e0391dcf3ec 100644 --- a/src/main/java/forge/GameActionUtil.java +++ b/src/main/java/forge/GameActionUtil.java @@ -57,6 +57,7 @@ import forge.game.player.ComputerUtil; import forge.game.player.Player; import forge.game.zone.ZoneType; import forge.gui.GuiChoose; +import forge.gui.GuiUtils; import forge.gui.match.CMatchUI; import forge.sound.SoundEffectType; import forge.util.MyRandom; @@ -499,11 +500,16 @@ public final class GameActionUtil { break; } + GuiUtils.clearPanelSelections(); + GuiUtils.setPanelSelection(source); + if (!showYesNoDialog(source, "Do you want to pay the sacrifice cost?")) { hasPaid = false; break; } + GuiUtils.clearPanelSelections(); + for (int i = 0; i < amount; i++) { if (list.isEmpty()) { hasPaid = false;