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

View file

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