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:
parent
98e7ab1b79
commit
7dfba0ae30
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue