mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-16 16:20:53 +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
@ -1463,7 +1463,10 @@ namespace MWMechanics
|
||||
std::set<MWWorld::Ptr> followersTarget;
|
||||
getActorsSidingWith(target, followersTarget);
|
||||
for(const auto& follower : followersTarget)
|
||||
startCombat(follower, attacker);
|
||||
{
|
||||
if(follower != attacker && follower != player)
|
||||
startCombat(follower, attacker);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user