diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/includes/changeLog.html b/gemp-lotr/gemp-lotr-async/src/main/web/includes/changeLog.html index af5e3c368..9604ff801 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/includes/changeLog.html +++ b/gemp-lotr/gemp-lotr-async/src/main/web/includes/changeLog.html @@ -1,4 +1,7 @@
+10 Sep. 2013
+- Fixed issue with being able to play more than allowed number of games in a league in certain circumstances.
+
5 Sep. 2013
- "Terrible and Evil" now requires to exert at least once.
diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/hall/HallServer.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/hall/HallServer.java
index 17ef3f47e..b91ac4006 100644
--- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/hall/HallServer.java
+++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/hall/HallServer.java
@@ -222,14 +222,14 @@ public class HallServer extends AbstractServer {
private void verifyNotPlayingLeagueGame(Player player, League league) throws HallException {
for (AwaitingTable awaitingTable : _awaitingTables.values()) {
- if (awaitingTable.getLeague() == league
+ if (league.equals(awaitingTable.getLeague())
&& awaitingTable.hasPlayer(player.getName())) {
throw new HallException("You can't play in multiple league games at the same time");
}
}
for (RunningTable runningTable : _runningTables.values()) {
- if (runningTable.getLeague() == league) {
+ if (league.equals(runningTable.getLeague())) {
LotroGameMediator game = runningTable.getLotroGameMediator();
if (game != null && !game.isFinished() && game.getPlayersPlaying().contains(player.getName()))
throw new HallException("You can't play in multiple league games at the same time");