mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Units: do not update facing for mind controlled creatures
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user