mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- 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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user