- 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:
Agetian
2012-12-01 15:59:39 +00:00
parent fe88846564
commit b2fb2d6a07

View File

@@ -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;