1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 21:45:32 +00:00

Followers with high fight should not engage in combat with the player

This commit is contained in:
MiroslavR 2014-09-01 03:43:53 +02:00
parent 98e7ab1b79
commit 7dfba0ae30

View file

@ -297,7 +297,14 @@ namespace MWMechanics
bool aggressive;
if (againstPlayer)
{
// followers with high fight should not engage in combat with the player (e.g. bm_bear_black_summon)
const std::list<MWWorld::Ptr>& followers = getActorsFollowing(actor2);
if (std::find(followers.begin(), followers.end(), actor1) != followers.end())
return;
aggressive = MWBase::Environment::get().getMechanicsManager()->isAggressive(actor1, actor2);
}
else
{
aggressive = false;