mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
r17604 was not merged properly in r17621
This commit is contained in:
@@ -126,7 +126,11 @@ public class QuestWinLose extends ControlWinLose {
|
||||
LobbyPlayer questPlayer = Singletons.getControl().getLobby().getQuestPlayer();
|
||||
if (isAnte) {
|
||||
//do per-game actions
|
||||
boolean isHumanWinner = match.isWonBy(questPlayer);
|
||||
GameOutcome outcome = match.getLastGameOutcome();
|
||||
|
||||
// Ante returns to owners in a draw
|
||||
if (!outcome.isDraw()) {
|
||||
boolean isHumanWinner = outcome.getWinner().equals(questPlayer);
|
||||
final List<CardPrinted> anteCards = new ArrayList<CardPrinted>();
|
||||
for( Player p : Singletons.getModel().getGame().getPlayers() ) {
|
||||
if (p.getLobbyPlayer().equals(questPlayer) == isHumanWinner) continue;
|
||||
@@ -143,6 +147,7 @@ public class QuestWinLose extends ControlWinLose {
|
||||
this.anteLost(anteCards);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!match.isMatchOver()) {
|
||||
this.getView().getBtnQuit().setText("Quit (15 Credits)");
|
||||
|
||||
Reference in New Issue
Block a user