Core/Units: restrict target guid based turning to creatures only

This commit is contained in:
Ovahlord
2020-09-23 16:36:58 +02:00
parent c9afa1a6ed
commit adffbaf375

View File

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