1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00

Fix handling of retreating of AI's

This commit is contained in:
Ivan Savenko 2023-08-24 13:36:01 +03:00
parent 97ef69c9ab
commit f451c15932

View File

@ -219,7 +219,8 @@ void BattleProcessor::updateGateState()
bool BattleProcessor::makePlayerBattleAction(PlayerColor player, const BattleAction &ba)
{
bool result = actionsProcessor->makePlayerBattleAction(player, ba);
flowProcessor->onActionMade(ba);
if (!resultProcessor->battleIsEnding())
flowProcessor->onActionMade(ba);
return result;
}