mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 21:40:03 +00:00
Merge branch 'stop_hitting_yourself' into 'master'
Don't try to start combat with oneself and don't tell the player what to do Closes #6856 See merge request OpenMW/openmw!2110
This commit is contained in:
commit
7fd87ff34f
@ -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