Don't count the actor we're following as siding with us if we're in combat with them but they aren't in combat with us

macos_ci_fix
Evil Eye 5 months ago
parent abbb620ea2
commit f80cd06256

@ -2090,6 +2090,10 @@ namespace MWMechanics
if (ally.getClass().getCreatureStats(ally).getAiSequence().getCombatTargets(enemies)
&& std::find(enemies.begin(), enemies.end(), actorPtr) != enemies.end())
break;
enemies.clear();
if (actorPtr.getClass().getCreatureStats(actorPtr).getAiSequence().getCombatTargets(enemies)
&& std::find(enemies.begin(), enemies.end(), ally) != enemies.end())
break;
}
list.push_back(package->getTarget());
}

Loading…
Cancel
Save