mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Nullkiller: hero chain stabilisation
This commit is contained in:
committed by
Andrii Danylchenko
parent
dd046e60be
commit
ff57a52001
@@ -43,8 +43,7 @@ Goals::TGoalVec CaptureObjectsBehavior::getTasks() {
|
||||
vstd::erase_if(waysToVisitObj, [objToVisit](Goals::TSubgoal goal) -> bool
|
||||
{
|
||||
return !goal->hero.validAndSet()
|
||||
|| !shouldVisit(goal->hero, objToVisit)
|
||||
|| goal->evaluationContext.danger * 1.5 > goal->hero->getTotalStrength();
|
||||
|| !shouldVisit(goal->hero, objToVisit);
|
||||
});
|
||||
|
||||
if(waysToVisitObj.empty())
|
||||
|
||||
Reference in New Issue
Block a user