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:
committed by
Andrii Danylchenko
parent
66ed1a2901
commit
b261734905
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user