From 69418ab93616cd04d2a91060c12e110d675b6941 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sun, 22 Oct 2023 10:12:30 -0300 Subject: [PATCH] =?UTF-8?q?fix(Scripts/Ulduar):=20Don't=20treat=20Algalon?= =?UTF-8?q?=20respawns=20as=20if=20they=20were=20the=E2=80=A6=20(#17562)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(Scripts/Ulduar): Don't treat Algalon respawns as if they were the first pull * Update boss_algalon_the_observer.cpp --- .../Ulduar/Ulduar/boss_algalon_the_observer.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp index 86fc02904..1f90c584a 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp @@ -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;