mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Followers with high fight should not engage in combat with the player
This commit is contained in:
parent
98e7ab1b79
commit
7dfba0ae30
@ -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…
x
Reference in New Issue
Block a user