mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 16:03:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user