From dc1f2d8cf96dd71e1ca22c0624a2a213dc5f7788 Mon Sep 17 00:00:00 2001 From: Alvin Zhu Date: Wed, 5 Apr 2023 13:00:09 +0800 Subject: [PATCH] fix BOSS_HORSEMAN Load --- src/naxx40Scripts/instance_naxxramas.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/naxx40Scripts/instance_naxxramas.cpp b/src/naxx40Scripts/instance_naxxramas.cpp index 3a0a3bc..e5b8659 100644 --- a/src/naxx40Scripts/instance_naxxramas.cpp +++ b/src/naxx40Scripts/instance_naxxramas.cpp @@ -724,6 +724,16 @@ public: return true; } + void Load(const char* data) override + { + _horsemanLoadDoneState = true; + InstanceScript::Load(data); + if (GetBossState(BOSS_HORSEMAN) != DONE) + { + _horsemanLoadDoneState = false; + } + } + bool SetBossState(uint32 bossId, EncounterState state) override { // pull all the trash if not killed @@ -743,9 +753,9 @@ public: } // Horseman handling - if (bossId == BOSS_HORSEMAN && !_horsemanLoadDoneState) + if (bossId == BOSS_HORSEMAN) { - if (state == DONE) + if (state == DONE && !_horsemanLoadDoneState) { _horsemanTimer++; _horsemanKilled++;