浏览代码

Check for end-of-battle after opening spells are cast, fixes potentially
infinite battle

Ivan Savenko 2 年之前
父节点
当前提交
848454d48a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      server/CGameHandler.cpp

+ 2 - 0
server/CGameHandler.cpp

@@ -6642,6 +6642,8 @@ void CGameHandler::runBattle()
 			}
 		}
 	}
+	// it is possible that due to opening spells one side was eliminated -> check for end of battle
+	checkBattleStateChanges();
 
 	bool firstRound = true;//FIXME: why first round is -1?