mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
When playing non-team matches, display Player name as winner in Game Recap screen
This commit is contained in:
@@ -92,8 +92,8 @@ public final class GameOutcome implements Iterable<Entry<RegisteredPlayer, Playe
|
||||
this.playerRating.put(p.getRegisteredPlayer(), p.getStats());
|
||||
this.playerNames.put(p.getRegisteredPlayer(), p.getName());
|
||||
|
||||
if (p.getOutcome().hasWon() &&
|
||||
(winCondition == GameEndReason.AllOpponentsLost || winCondition == GameEndReason.AllOpposingTeamsLost)) {
|
||||
if (p.getOutcome().hasWon() && winCondition == GameEndReason.AllOpposingTeamsLost) {
|
||||
// Only mark the WinningTeam when "Team mode" is on.
|
||||
winningTeam = p.getTeam();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user