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

This commit is contained in:
Ovahlord committed 2020-09-23 20:48:45 +02:00
1 parent c9afa1a6ed
commit adffbaf375
1 file changed
+1 -1
+1 -1
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())