diff options
Diffstat (limited to 'sw-engine')
-rw-r--r-- | sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt index 1d4fab65..78d09b35 100644 --- a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt +++ b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt @@ -199,6 +199,8 @@ class Game internal constructor( private fun endOfAgeReached(): Boolean = hands.isEmpty private fun executeEndOfAgeEvents() { + // this is necessary because this method is actually called twice in the 3rd age if someone has CPY_GUILD + // TODO we should instead manage the game's state machine in a better way to avoid stuff like this if (!militaryConflictsResolved) { table.resolveMilitaryConflicts() militaryConflictsResolved = true |