1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Nullkiller AI: new prioritization engine

This commit is contained in:
Andrii Danylchenko
2021-05-16 14:13:40 +03:00
committed by Andrii Danylchenko
parent 66ed1a2901
commit b261734905
7 changed files with 55 additions and 11 deletions

View File

@@ -97,7 +97,7 @@ Goals::TGoalVec CaptureObjectsBehavior::getTasks()
continue;
auto hero = path.targetHero;
auto danger = path.getTotalDanger(hero);
auto danger = path.getTotalDanger();
if(danger == 0 && path.exchangeCount > 1)
continue;