fix(Scripts/BlackTemple): Implement emotes when opening Najentus and … (#19946)

* fix(Scripts/BlackTemple): Implement emotes when opening Najentus and Den of Mortal Delights

* only check if state is done
This commit is contained in:
Andrew 2024-09-15 07:48:11 -03:00 committed by GitHub
parent 99b39e5045
commit 8b16f7d243
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 58 additions and 12 deletions

View file

@ -761,6 +761,24 @@ void InstanceScript::LoadInstanceSavedGameobjectStateData()
}
}
bool InstanceScript::AllBossesDone() const
{
for (auto const& boss : bosses)
if (boss.state != DONE)
return false;
return true;
}
bool InstanceScript::AllBossesDone(std::initializer_list<uint32> bossIds) const
{
for (auto const& bossId : bossIds)
if (!IsBossDone(bossId))
return false;
return true;
}
std::string InstanceScript::GetBossStateName(uint8 state)
{
// See enum EncounterState in InstanceScript.h