Core/Units: reverted a change that was preventing guardians from working as intended
This commit is contained in:
1 parent
783505ac35
commit
312d692b62
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user