fix(Scripts/AzjolNerub): Call next watcher when a watcher pack dies (#23799)

This commit is contained in:
Andrew
2026-01-04 15:14:10 -03:00
committed by GitHub
parent 8b7556a989
commit 2e7845f429
6 changed files with 168 additions and 21 deletions

View File

@@ -417,6 +417,15 @@ void CreatureGroup::LeaderMoveTo(float x, float y, float z, uint32 move_type)
}
}
void CreatureGroup::DespawnFormation(Milliseconds timeToDespawn /*=0ms*/, Seconds forcedRespawnTimer /*=0s*/)
{
for (auto const& itr : m_members)
{
if (itr.first)
itr.first->DespawnOrUnsummon(timeToDespawn, forcedRespawnTimer);
}
}
void CreatureGroup::RespawnFormation(bool force)
{
for (auto const& itr : m_members)

View File

@@ -112,6 +112,7 @@ public:
void MemberEngagingTarget(Creature* member, Unit* target);
Unit* GetNewTargetForMember(Creature* member);
void MemberEvaded(Creature* member);
void DespawnFormation(Milliseconds timeToDespawn = 0ms, Seconds forcedRespawnTimer = 0s);
void RespawnFormation(bool force = false);
[[nodiscard]] bool IsFormationInCombat();
[[nodiscard]] bool IsAnyMemberAlive(bool ignoreLeader = false);