mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Check for end-of-battle after opening spells are cast, fixes potentially
infinite battle
This commit is contained in:
parent
1248292503
commit
848454d48a
@ -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?
|
bool firstRound = true;//FIXME: why first round is -1?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user