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