1
0
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:
Evil Eye 2022-07-06 19:12:36 +02:00
parent 510a9b9a5e
commit e42d63f4a4

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