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

NKAI: replace hardcoded pandora with more flexible solution

This commit is contained in:
Andrii Danylchenko
2024-09-20 15:57:02 +03:00
parent ec6c84b0e0
commit ce0f51672a
8 changed files with 23 additions and 18 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ void ExploreNeighbourTile::accept(AIGateway * ai)
return;
}
auto danger = ai->nullkiller->pathfinder->getStorage()->evaluateDanger(target, hero, true);
auto danger = ai->nullkiller->dangerEvaluator->evaluateDanger(target, hero, true);
if(danger > 0 || !ai->moveHeroToTile(target, hero))
{