1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-05 06:40:09 +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:
psi29a 2022-07-06 20:46:46 +00:00
commit 7fd87ff34f

View File

@ -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);
}
}
}
}