Skip to content

Commit

Permalink
Zone-wide aggro pulse should also place pets in combat (#2170)
Browse files Browse the repository at this point in the history
When player enters combat due to zone-wide pulse, their pet should enter combat as well
  • Loading branch information
balakethelock authored Nov 11, 2023
1 parent d3f7a67 commit 1c24cd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/game/Objects/Creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,12 @@ void Creature::SetInCombatWithZone(bool initialPulse)
continue;

if (IsValidAttackTarget(pPlayer))
{
EnterCombatWithTarget(pPlayer);
Pet* pet = pPlayer->GetPet();
if (pet && IsValidAttackTarget(pet))
EnterCombatWithTarget(pet);
}
}
}
}
Expand Down

0 comments on commit 1c24cd9

Please sign in to comment.