1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Running out of timer during battle will no longer force retreat

This commit is contained in:
Ivan Savenko
2024-06-19 18:27:26 +00:00
parent cfcecbf630
commit 8c63a3e4de

View File

@@ -313,10 +313,8 @@ void TurnTimerHandler::onBattleLoop(const BattleID & battleID, int waitTime)
}
else
{
BattleAction retreat;
retreat.side = side;
retreat.actionType = EActionType::RETREAT; //harsh punishment
gameHandler.battles->makePlayerBattleAction(battleID, player, retreat);
// battle vs neutrals - no-op, let battle run till the end
// once battle is over player turn will be over due to running out of timer on adventure map
}
}
}