Core/Unit: Guardians no longer enter combat before reaching the target (#19816)
This commit is contained in:
1 parent
b09c808291
commit
6da3663547
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user