mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
NKAI: parallel capture objects
This commit is contained in:
@@ -112,7 +112,7 @@ TGoalVec CompleteQuest::tryCompleteQuest() const
|
||||
return !q.quest->checkQuest(path.targetHero);
|
||||
});
|
||||
|
||||
return CaptureObjectsBehavior::getVisitGoals(paths, q.obj);
|
||||
return CaptureObjectsBehavior::getVisitGoals(paths, ai->nullkiller.get(), q.obj);
|
||||
}
|
||||
|
||||
TGoalVec CompleteQuest::missionArt() const
|
||||
@@ -154,7 +154,7 @@ TGoalVec CompleteQuest::missionArmy() const
|
||||
return !CQuest::checkMissionArmy(q.quest, path.heroArmy);
|
||||
});
|
||||
|
||||
return CaptureObjectsBehavior::getVisitGoals(paths, q.obj);
|
||||
return CaptureObjectsBehavior::getVisitGoals(paths, ai->nullkiller.get(), q.obj);
|
||||
}
|
||||
|
||||
TGoalVec CompleteQuest::missionIncreasePrimaryStat() const
|
||||
|
||||
Reference in New Issue
Block a user