mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-28 21:06:40 +00:00
Don't try to start combat with oneself and don't tell the player what to do
This commit is contained in:
parent
510a9b9a5e
commit
e42d63f4a4
1 changed files with 4 additions and 1 deletions
|
@ -1463,10 +1463,13 @@ namespace MWMechanics
|
|||
std::set<MWWorld::Ptr> followersTarget;
|
||||
getActorsSidingWith(target, followersTarget);
|
||||
for(const auto& follower : followersTarget)
|
||||
{
|
||||
if(follower != attacker && follower != player)
|
||||
startCombat(follower, attacker);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue