Core/Unit: Guardians no longer enter combat before reaching the target

Port From (https://github.com/TrinityCore/TrinityCore/commit/0de5fbb6c0aee0ef7fd7750dd8246f6ae576bc83)
This commit is contained in:
hondacrx
2021-09-08 23:37:19 -04:00
parent c790d78095
commit 41b76ef203
+1 -1
View File
@@ -328,7 +328,7 @@ namespace Game.Entities
if (meleeAttack)
AddUnitState(UnitState.MeleeAttacking);
if (creature != null && !IsPet())
if (creature != null && !IsControlledByPlayer())
{
EngageWithTarget(victim); // ensure that anything we're attacking has threat