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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user