From 0801ffdd911395d4226d0defb98d15bc0296cea9 Mon Sep 17 00:00:00 2001 From: Dinkledork <118951051+Day36512@users.noreply.github.com> Date: Thu, 23 Oct 2025 15:07:18 -0600 Subject: [PATCH] Improve EVENT_SLIME_SPRAY logic for raid difficulties (#825) Refactor slime spray damage for vanilla naxx40. --- src/naxx40Scripts/boss_grobbulus_40.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/naxx40Scripts/boss_grobbulus_40.cpp b/src/naxx40Scripts/boss_grobbulus_40.cpp index 3aa6445..7409599 100644 --- a/src/naxx40Scripts/boss_grobbulus_40.cpp +++ b/src/naxx40Scripts/boss_grobbulus_40.cpp @@ -169,7 +169,11 @@ public: break; case EVENT_SLIME_SPRAY: Talk(EMOTE_SLIME); - me->CastSpell(me->GetVictim(), RAID_MODE(SPELL_SLIME_SPRAY_10, SPELL_SLIME_SPRAY_25, SPELL_SLIME_SPRAY_10, SPELL_SLIME_SPRAY_25), false); + if (Unit* target = me->GetVictim()) + { + int32 bp0 = urand(3200, 4800); + me->CastCustomSpell(target, SPELL_SLIME_SPRAY_10, &bp0, nullptr, nullptr, false); + } events.Repeat(20s); break; case EVENT_MUTATING_INJECTION: