Core/Unit: Guardians no longer enter combat before reaching the target (#19816)

(cherry picked from commit a891eb364e)
This commit is contained in:
Keader
2018-03-11 09:23:23 -03:00
committed by Shauren
parent a88cf958b0
commit 0de5fbb6c0

View File

@@ -5482,7 +5482,7 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
//if (GetTypeId() == TYPEID_UNIT)
// ToCreature()->SetCombatStartPosition(GetPositionX(), GetPositionY(), GetPositionZ());
if (creature && !IsPet())
if (creature && !IsControlledByPlayer())
{
EngageWithTarget(victim); // ensure that anything we're attacking has threat