Skip to content

Commit

Permalink
make sure to cancel on removal
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalOS committed Jan 25, 2025
1 parent 8ef08d1 commit 1ab9a7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions DBM-Party-Cataclysm/GrimBatol/Erudax.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1ab9a7b

Please sign in to comment.