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:
parent
99b39e5045
commit
8b16f7d243
5 changed files with 58 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue