mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 15:15:31 +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;
|
bool aggressive;
|
||||||
|
|
||||||
if (againstPlayer)
|
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);
|
aggressive = MWBase::Environment::get().getMechanicsManager()->isAggressive(actor1, actor2);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
aggressive = false;
|
aggressive = false;
|
||||||
|
|
Loading…
Reference in a new issue