fix(Core/Pets): controllable guardians (including pets) should not set the combat with its target when commanded to attack it (#7315)
- Closes #7264
This commit is contained in:
parent
0e70a11b83
commit
3fa1aa1c17
2 changed files with 6 additions and 5 deletions
|
|
@ -9862,7 +9862,7 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
|
|||
//if (GetTypeId() == TYPEID_UNIT)
|
||||
// ToCreature()->SetCombatStartPosition(GetPositionX(), GetPositionY(), GetPositionZ());
|
||||
|
||||
if (creature && !IsPet())
|
||||
if (creature && !IsControllableGuardian())
|
||||
{
|
||||
// should not let player enter combat by right clicking target - doesn't helps
|
||||
SetInCombatWith(victim);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue