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.
This commit is contained in:
Karrz1
2026-11-16 20:48:01 +00:00
parent 511ddb39c0
commit 1fad0e70e6
@@ -27,6 +27,7 @@
#include "TemporarySummon.h"
#include "classic_dungeon_encounter_tracker.h"
#include "classic_razorfen_downs.h"
#include <set>
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<ObjectGuid> _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<uint32> _savedTutenKash;
};