Core/Units: do not update facing for mind controlled creatures

This commit is contained in:
Ovahlord
2020-09-24 14:31:18 +02:00
parent 361ac2292b
commit bf04bd36db

View File

@@ -474,7 +474,7 @@ void Unit::Update(uint32 p_time)
if (WorldObject const* objectTarget = ObjectAccessor::GetWorldObject(*this, channelGuid))
SetOrientationTowards(objectTarget);
}
else if (IsCreature())
else if (IsCreature() && !HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_POSSESSED))
{
ObjectGuid const targetGuid = GetTarget();
if (!targetGuid.IsEmpty() && targetGuid != GetGUID())