Skip to content

Commit

Permalink
VanillaNaxx-Gluth: add Terrifying Roar mechanic
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Jul 10, 2024
1 parent 0a28487 commit 5dd4f65
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions DBM-VanillaNaxx/ConstructQuarter/Gluth.lua
Original file line number Diff line number Diff line change
@@ -1,33 +1,39 @@
local mod = DBM:NewMod("Gluth-Vanilla", "DBM-VanillaNaxx", 2)
local L = mod:GetLocalizedStrings()

mod:SetRevision("20240709232438")
mod:SetRevision("20240710091626")
mod:SetCreatureID(15932)

mod:RegisterCombat("combat")

mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 28371",
"SPELL_AURA_REMOVED 28371",
"SPELL_CAST_SUCCESS 29685",
"SPELL_DAMAGE 28375 54426"
)

--TODO, is it really necessary to use SPELL_DAMAGE here?
--TODO, verify decimate timer is actually accurate for wrath (it certainly wasn't for naxx 40)
local warnEnrage = mod:NewTargetNoFilterAnnounce(19451, 3, nil , "Healer|Tank|RemoveEnrage", 2)
local warnDecimateSoon = mod:NewSoonAnnounce(28375, 2)
local warnDecimateNow = mod:NewSpellAnnounce(28375, 3)
local warnEnrage = mod:NewTargetNoFilterAnnounce(19451, 3, nil , "Healer|Tank|RemoveEnrage", 2)
local warnDecimateSoon = mod:NewSoonAnnounce(28375, 2)
local warnDecimateNow = mod:NewSpellAnnounce(28375, 3)
local warnTerryfingRoarSoon = mod:NewSoonAnnounce(29685, 3)
local warnTerryfingRoar = mod:NewSpellAnnounce(29685, 3)

local specWarnEnrage = mod:NewSpecialWarningDispel(19451, "RemoveEnrage", nil, nil, 1, 6)
local specWarnEnrage = mod:NewSpecialWarningDispel(19451, "RemoveEnrage", nil, nil, 1, 6)

local timerEnrage = mod:NewBuffActiveTimer(8, 19451, nil, nil, nil, 5, nil, DBM_COMMON_L.ENRAGE_ICON)
local timerDecimate = mod:NewCDTimer(105, 28375, nil, nil, nil, 2) -- (Onyxia: [2024-07-08]@[18:54:05]) - "Decimate-28375-npc:15932-942 = pull:104.98, 105.00, 0.00, 0.00, 0.01"
local enrageTimer = mod:NewBerserkTimer(420)
local timerEnrage = mod:NewBuffActiveTimer(8, 19451, nil, nil, nil, 5, nil, DBM_COMMON_L.ENRAGE_ICON)
local timerDecimate = mod:NewCDTimer(105, 28375, nil, nil, nil, 2) -- (Onyxia: [2024-07-08]@[18:54:05]) - "Decimate-28375-npc:15932-942 = pull:104.98, 105.00, 0.00, 0.00, 0.01"
local timerTerrifyingRoarCD = mod:NewCDTimer(20, 29685, nil, nil, nil, 6) -- ~1s variance [20.01-20.96]. (Onyxia: [2024-07-08]@[18:54:05]) - "Terrifying Roar-29685-npc:15932-942 = pull:20.54, 20.35, 20.43, 20.91, 20.81, 20.03, 20.01, 20.36, 20.02, 20.51, 20.96"
local enrageTimer = mod:NewBerserkTimer(420)

function mod:OnCombatStart(delay)
enrageTimer:Start(-delay)
timerDecimate:Start(-delay) -- 25m Log review from 2022-05-05 - 1 minutes 50 seconds
warnDecimateSoon:Schedule(95-delay)
warnTerryfingRoarSoon:Schedule(15)
timerTerrifyingRoarCD:Start()
end

function mod:SPELL_AURA_APPLIED(args)
Expand All @@ -48,6 +54,14 @@ function mod:SPELL_AURA_REMOVED(args)
end
end

function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 29685 then
warnTerryfingRoar:Show()
warnTerryfingRoarSoon:Schedule(15)
timerTerrifyingRoarCD:Start()
end
end

function mod:SPELL_DAMAGE(_, _, _, _, _, _, spellId)
if (spellId == 28375 or spellId == 54426) and self:AntiSpam(20) then
warnDecimateNow:Show()
Expand Down

0 comments on commit 5dd4f65

Please sign in to comment.