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

Battle AI: fix firewall, fix haste spellcast evaluation for waits and movements, allow location spells

This commit is contained in:
Andrii Danylchenko
2024-08-25 15:49:11 +03:00
parent a819c3fc29
commit d55996cc46
5 changed files with 54 additions and 31 deletions
+1 -3
View File
@@ -219,9 +219,7 @@ EvaluationResult BattleExchangeEvaluator::findBestTarget(
auto hbWaited = std::make_shared<HypotheticBattle>(env.get(), hb);
hbWaited->resetActiveUnit();
hbWaited->getForUpdate(activeStack->unitId())->waiting = true;
hbWaited->getForUpdate(activeStack->unitId())->waitedThisTurn = true;
hbWaited->makeWait(activeStack);
updateReachabilityMap(hbWaited);