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

This commit is contained in:
Keader
2018-03-11 09:23:23 -03:00
committed by Treeston
parent 43491ba7f4
commit a891eb364e

View File

@@ -5547,7 +5547,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