fix(Scripts/Ulduar): Don't treat Algalon respawns as if they were the… (#17562)

* fix(Scripts/Ulduar): Don't treat Algalon respawns as if they were the first pull

* Update boss_algalon_the_observer.cpp
This commit is contained in:
Andrew
2023-10-22 10:12:30 -03:00
committed by GitHub
parent 9935e72341
commit 69418ab936

View File

@@ -388,6 +388,11 @@ public:
_phaseTwo = false;
_heraldOfTheTitans = true;
if (m_pInstance->GetData(TYPE_ALGALON) == FAIL)
{
_firstPull = false;
}
if (m_pInstance)
m_pInstance->SetData(TYPE_ALGALON, NOT_STARTED);
}
@@ -1151,6 +1156,14 @@ public:
if (GameObject* sigil = ObjectAccessor::GetGameObject(*me, instance->GetGuidData(GO_DOODAD_UL_SIGILDOOR_02)))
sigil->SetGoState(GO_STATE_ACTIVE);
if (Map* map = player->GetMap())
{
if (InstanceMap* instanceMap = map->ToInstanceMap())
{
instanceMap->PermBindAllPlayers();
}
}
}
return false;