Core/Units: restrict target guid based turning to creatures only
This commit is contained in:
1 parent
c9afa1a6ed
commit
adffbaf375
1 file changed
+1
-1
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user