Core/Units: reverted a change that was preventing guardians from working as intended

This commit is contained in:
Ovahlord committed 2019-07-25 20:08:40 +02:00
1 parent 783505ac35
commit 312d692b62
1 file changed
+1 -1
+1 -1
View File
@@ -5728,7 +5728,7 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
//if (GetTypeId() == TYPEID_UNIT)
// ToCreature()->SetCombatStartPosition(GetPositionX(), GetPositionY(), GetPositionZ());
if (creature && !IsControlledByPlayer())
if (creature && !IsPet())
{
// should not let player enter combat by right clicking target - doesn't helps
AddThreat(victim, 0.0f);