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

This commit is contained in:
Keader authored and Aokromes committed 2018-03-12 12:21:46 +01:00
1 parent b09c808291
commit 6da3663547
1 file changed
+1 -1
+1 -1
View File
@@ -5533,7 +5533,7 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
//if (GetTypeId() == TYPEID_UNIT)
// ToCreature()->SetCombatStartPosition(GetPositionX(), GetPositionY(), GetPositionZ());
if (creature && !IsPet())
if (creature && !IsControlledByPlayer())
{
// should not let player enter combat by right clicking target - doesn't helps
AddThreat(victim, 0.0f);