Skip to content

Commit

Permalink
Update GeneralUmbriss.lua (#376)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam <[email protected]>
  • Loading branch information
Aleksart163 and MysticalOS authored Jan 27, 2025
1 parent fd7f70c commit aa4c2ca
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion DBM-Party-Cataclysm/GrimBatol/GeneralUmbriss.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ mod:RegisterCombat("combat")
if mod:IsRetail() then
--Retail version of mod
mod:RegisterEventsInCombat(
"SPELL_CAST_START 448847 448877 447261"
"SPELL_CAST_START 448847 448877 447261",
"SPELL_AURA_APPLIED 448870",
"SPELL_AURA_REMOVED 448870"
)

--[[
Expand All @@ -35,6 +37,8 @@ if mod:IsRetail() then
local timerRockSpikeCD = mod:NewNextCountTimer(25, 448877, nil, nil, nil, 3)
local timerSkullsplitterCD = mod:NewNextCountTimer(25, 447261, nil, nil, nil, 5, nil, DBM_COMMON_L.TANK_ICON)

local yellRockSpikeFades = mod:NewShortFadesYell(448870)

mod.vb.roarCount = 0
mod.vb.spikeCount = 0
mod.vb.skullCount = 0
Expand Down Expand Up @@ -69,6 +73,21 @@ if mod:IsRetail() then
timerSkullsplitterCD:Start(nil, self.vb.skullCount+1)
end
end

function mod:SPELL_AURA_APPLIED(args)
local spellId = args.spellId
if spellId == 448870 then
if args:IsPlayer() then
yellRockSpikeFades:Countdown(spellId)
end
end
end

function mod:SPELL_AURA_REMOVED(args)
if args.spellId == 448870 and args:IsPlayer() then
yellRockSpikeFades:Cancel()
end
end
else
--Classic version of mod
mod:RegisterEventsInCombat(
Expand Down

0 comments on commit aa4c2ca

Please sign in to comment.