fix(Script/Hyjal): Fix encounter states not reseting if bosses are de… (#19000)

* fix(Script/Hyjal): Fix encounter states not reseting if bosses are despawned while in combat

* Update instance_hyjal.cpp
This commit is contained in:
Andrew 2024-06-03 00:31:31 -03:00 committed by GitHub
parent 708e2681b6
commit 70fc43ff8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -419,6 +419,9 @@ public:
if (Creature* creature = instance->GetCreature(guid))
creature->DespawnOrUnsummon();
if (_bossWave && (GetBossState(_bossWave) != DONE))
SetBossState(_bossWave, NOT_STARTED);
_scheduler.Schedule(300s, [this](TaskContext)
{
for (ObjectGuid const& guid : _baseAlliance)
@ -442,6 +445,9 @@ public:
if (Creature* creature = instance->GetCreature(guid))
creature->DespawnOrUnsummon();
if (_bossWave && (GetBossState(_bossWave) != DONE))
SetBossState(_bossWave, NOT_STARTED);
_scheduler.Schedule(300s, [this](TaskContext)
{
for (ObjectGuid const& guid : _baseHorde)