From 1ab9a7b0a294645c3510e5e0e69d6115321393bd Mon Sep 17 00:00:00 2001 From: MysticalOS Date: Sat, 25 Jan 2025 15:52:34 -0500 Subject: [PATCH] make sure to cancel on removal --- DBM-Party-Cataclysm/GrimBatol/Erudax.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DBM-Party-Cataclysm/GrimBatol/Erudax.lua b/DBM-Party-Cataclysm/GrimBatol/Erudax.lua index 4dbb8478..490500da 100644 --- a/DBM-Party-Cataclysm/GrimBatol/Erudax.lua +++ b/DBM-Party-Cataclysm/GrimBatol/Erudax.lua @@ -20,6 +20,7 @@ mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 75763 79467 449939 450077 450100", "SPELL_AURA_APPLIED 75861 75792 448057", + "SPELL_AURA_REMOVED 448057", "UNIT_SPELLCAST_SUCCEEDED boss1" ) @@ -127,6 +128,12 @@ function mod:SPELL_AURA_APPLIED(args) end end +function mod:SPELL_AURA_REMOVED(args) + if args.spellId == 448057 and args:IsPlayer() then + yellAbyssalFades:Cancel() + end +end + --Sometimes boss fails to cast gale so no SPELL_CAST_START event. This ensures we still detect cast and start timers --Cataclysm mechanics function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)