From dd4fa3893eb126ce89a42a3657e030ad3e0c9d33 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sun, 25 Sep 2022 15:41:37 +0200 Subject: [PATCH] =?UTF-8?q?fix(Scripts/MoltenCore):=20Boss'=20runes=20shou?= =?UTF-8?q?ld=20not=20respawn=20after=205=20min=20o=E2=80=A6=20(#13127)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Scripts/MoltenCore): Boss' runes should not respawn after 5 min of boss death. Fixes #10039 --- .../BlackrockMountain/MoltenCore/instance_molten_core.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/BlackrockMountain/MoltenCore/instance_molten_core.cpp b/src/server/scripts/EasternKingdoms/BlackrockMountain/MoltenCore/instance_molten_core.cpp index 230b54e6e..e5896a335 100644 --- a/src/server/scripts/EasternKingdoms/BlackrockMountain/MoltenCore/instance_molten_core.cpp +++ b/src/server/scripts/EasternKingdoms/BlackrockMountain/MoltenCore/instance_molten_core.cpp @@ -163,7 +163,7 @@ public: if (GetBossState(linkedBossObjData[i].bossId) == DONE) { - go->DespawnOrUnsummon(); + go->DespawnOrUnsummon(0ms, Seconds(WEEK)); } else { @@ -190,7 +190,7 @@ public: if (GetBossState(linkedBossObjData[i].bossId) == DONE) { - go->SetGoState(GO_STATE_ACTIVE); + go->UseDoorOrButton(WEEK * IN_MILLISECONDS); } else { @@ -310,13 +310,13 @@ public: { if (GameObject* circle = instance->GetGameObject(_circlesGUIDs[bossId])) { - circle->DespawnOrUnsummon(); + circle->DespawnOrUnsummon(0ms, Seconds(WEEK)); _circlesGUIDs[bossId].Clear(); } if (GameObject* rune = instance->GetGameObject(_runesGUIDs[bossId])) { - rune->SetGoState(GO_STATE_ACTIVE); + rune->UseDoorOrButton(WEEK * IN_MILLISECONDS); _runesGUIDs[bossId].Clear(); }