1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

BattleAI: remove boost for archers while moving as actual stack may be small

This commit is contained in:
Andrii Danylchenko
2024-08-18 19:47:43 +03:00
parent bc80532f29
commit 337f99942b
-3
View File
@@ -352,9 +352,6 @@ MoveTarget BattleExchangeEvaluator::findMoveTowardsUnreachable(
auto speedRatio = speed / static_cast<float>(enemySpeed);
auto multiplier = speedRatio > 1 ? 1 : speedRatio;
if(enemy->canShoot())
multiplier *= 1.5f;
for(auto & hex : hexes)
{
// FIXME: provide distance info for Jousting bonus