| 2056 | } |
| 2057 | |
| 2058 | void Battle::checkIfBuildingDisabled(GameState &state [[maybe_unused]]) |
| 2059 | { |
| 2060 | if (!buildingCanBeDisabled || buildingDisabled || !tryDisableBuilding()) |
| 2061 | { |
| 2062 | return; |
| 2063 | } |
| 2064 | buildingDisabled = true; |
| 2065 | fw().pushEvent(new GameEvent(GameEventType::BuildingDisabled)); |
| 2066 | } |
| 2067 | |
| 2068 | bool Battle::tryDisableBuilding() |
| 2069 | { |