From 830574a1367680cb0568378c2e7a3d27d66ac650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Thu, 13 Jun 2024 12:17:52 -0600 Subject: [PATCH] Fix Naxx40 Gluth decimate SpellScript --- src/naxx40Scripts/boss_gluth_40.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/naxx40Scripts/boss_gluth_40.cpp b/src/naxx40Scripts/boss_gluth_40.cpp index e7b968f..41f034a 100644 --- a/src/naxx40Scripts/boss_gluth_40.cpp +++ b/src/naxx40Scripts/boss_gluth_40.cpp @@ -26,6 +26,7 @@ enum Spells SPELL_MORTAL_WOUND = 25646, SPELL_ENRAGE = 28371, SPELL_DECIMATE = 28374, + SPELL_DECIMATE_DAMAGE = 28375, SPELL_BERSERK = 26662, SPELL_INFECTED_WOUND = 29306, SPELL_CHOW_SEARCHER = 28404 @@ -254,6 +255,11 @@ class spell_gluth_decimate : public SpellScript { PrepareSpellScript(spell_gluth_decimate); + bool Validate(SpellInfo const* /*spellInfo*/) override + { + return ValidateSpellInfo({ SPELL_DECIMATE_DAMAGE }); + } + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { if (Unit* unitTarget = GetHitUnit()) @@ -270,7 +276,7 @@ class spell_gluth_decimate : public SpellScript Unit::DealDamage(GetCaster(), cTarget, damage); return; } - GetCaster()->CastCustomSpell(28375, SPELLVALUE_BASE_POINT0, damage, unitTarget); + GetCaster()->CastCustomSpell(SPELL_DECIMATE_DAMAGE, SPELLVALUE_BASE_POINT0, damage, unitTarget); } }