From 1fad0e70e602a372793672d9bdbe301bcc60553a Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:37:41 +0000 Subject: [PATCH] Razorfen Downs: SIN's Tuten'kash gong fix as he wrote it Our version of SIN's gong fix (0.1.36) already had his logic; the file now matches his patch exactly (std::set and a uint32 wave counter, his comments). Code by SIN (1amcoff1n), Tuten'kash Gong Fix for 0.1.35. His prebuilt worldserver.exe is not used. --- .../razorfen_downs/classic_instance_razorfen_downs.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/server/scripts/Custom/Classic/instances/razorfen_downs/classic_instance_razorfen_downs.cpp b/src/server/scripts/Custom/Classic/instances/razorfen_downs/classic_instance_razorfen_downs.cpp index 7258507271..a9e967eab5 100644 --- a/src/server/scripts/Custom/Classic/instances/razorfen_downs/classic_instance_razorfen_downs.cpp +++ b/src/server/scripts/Custom/Classic/instances/razorfen_downs/classic_instance_razorfen_downs.cpp @@ -27,6 +27,7 @@ #include "TemporarySummon.h" #include "classic_dungeon_encounter_tracker.h" #include "classic_razorfen_downs.h" +#include namespace { @@ -226,9 +227,6 @@ public: return _encounter[0] == DONE || GetBossState(CLASSIC_RFD_ENC_TUTENKASH) == DONE; } - // The wave's creatures used to count themselves through their stock scripts; those became plain SmartAI - // (world 2026_10_16_10), so after the first strike the gong never unlocked. The instance tracks them now: a - // wave killed to the last creature is cleared, a wave with a creature gone alive is struck again. void FinishGongSummon(ObjectGuid guid, bool killed) { if (!_gongSummons.erase(guid)) @@ -246,13 +244,13 @@ public: gong->RemoveFlag(GO_FLAG_NOT_SELECTABLE); } - GuidSet _gongSummons; // creatures of the running gong wave + std::set _gongSummons; bool _gongWaveLost = false; ObjectGuid _gongGUID; ObjectGuid _cupFire1GUID; ObjectGuid _cupFire2GUID; uint32 _encounter[CLASSIC_RFD_MAX_ENCOUNTER]; - uint8 _gongWaves; // gong waves cleared, 3 = Tuten'kash dead + uint32 _gongWaves; PersistentInstanceScriptValue _savedTutenKash; };