Skip to content

Commit

Permalink
Update Magtheridon code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ForestJ316 committed Sep 23, 2024
1 parent 9350b66 commit 0c25c11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DBM-Magtheridon/Magtheridon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local specWarnHeal = mod:NewSpecialWarningInterrupt(30528, "HasInterrupt", nil

local timerHeal = mod:NewCastTimer(2, 30528, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)
local timerPhase2 = mod:NewTimer(120, "timerP2", "Interface\\Icons\\INV_Weapon_Halberd16", nil, nil, 6)
local timerConflagration = mod:NewCDTimer(30, 30757, nil, nil, nil, 2)
local timerConflagration = mod:NewCDTimer(30, 30757, nil, nil, nil, 2, nil, nil, true)
local timerQuake = mod:NewCDTimer(50, 26093, nil, nil, nil, 2)
local timerBlastNovaCD = mod:NewCDCountTimer(54, 30616, nil, nil, nil, 2, nil, DBM_COMMON_L.DEADLY_ICON)
local timerDebris = mod:NewNextTimer(15, 36449, nil, nil, nil, 2, nil, DBM_COMMON_L.HEALER_ICON..DBM_COMMON_L.TANK_ICON)--Only happens once per fight, after the phase 3 yell.
Expand Down Expand Up @@ -56,7 +56,7 @@ function mod:SPELL_CAST_START(args)
end

function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 30511 and self:AntiSpam(3, "Abyssal") then
if args.spellId == 30511 and self:AntiSpam(3, 1) then
warningInfernal:Show()
end
end
Expand All @@ -67,7 +67,7 @@ function mod:CHAT_MSG_MONSTER_YELL(msg)
warnPhase2:Show()
timerBlastNovaCD:Start(nil, self.vb.blastNovaCounter)
timerPhase2:Cancel()
timerConflagration:Start(18) -- First Conflagration cd at least 10-25 (15 sec randomness)
timerConflagration:Start(10) -- First Conflagration cd at least 10-25 (15 sec randomness)
timerQuake:Start(40) -- First Quake in 40 seconds
elseif msg == L.DBM_MAG_YELL_PHASE3 or msg:find(L.DBM_MAG_YELL_PHASE3) then
self:SetStage(3)
Expand All @@ -89,11 +89,11 @@ function mod:CHAT_MSG_MONSTER_YELL(msg)
end

function mod:UNIT_SPELLCAST_SUCCEEDED(_, spellName)
if spellName == GetSpellInfo(26093) and self:AntiSpam(3, "Quake") then
if spellName == GetSpellInfo(26093) then
timerQuake:Start()
-- "<99.72 20:36:19> [UNIT_SPELLCAST_SUCCEEDED] Magtheridon(31.4%-0.0%){Target:Player} -Blaze- [[boss1:Blaze::0:]]", -- [1219]
-- "<100.03 20:36:19> [CLEU] SPELL_AURA_APPLIED#0x0F000000000A3F3A#Player#0x0F000000000A3F3A#Player#30757#Conflagration#DEBUFF#nil#", -- [1220]
elseif spellName == GetSpellInfo(40637) and self:AntiSpam(3, "Conflag") then
elseif spellName == GetSpellInfo(40637) then
timerConflagration:Start()
end
end

0 comments on commit 0c25c11

Please sign in to comment.