You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.0 KiB

local mod = DBM:NewMod(669, "DBM-Party-MoP", 2, 302)
local L = mod:GetLocalizedStrings()
mod.statTypes = "normal,heroic,challenge,timewalker"
mod:SetRevision("20211007190954")
mod:SetCreatureID(56717)
mod:SetEncounterID(1413)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 112992 112944"
)
local specWarnFurlwind = mod:NewSpecialWarningRun(112992, "Melee", nil, nil, 4, 2)
local specWarnCarrotBreath = mod:NewSpecialWarningDodge(112944, nil, nil, nil, 2, 2)--Evaluate, my memory fuzzy
local timerFurlwind = mod:NewBuffActiveTimer(9.5, 112992, nil, nil, nil, 5)
local timerFurlwindCD = mod:NewNextTimer(25, 112992, nil, nil, nil, 2)--True CD, 43 seconds, but triggering off alternating abilities reduces timer spam.
local timerBreath = mod:NewBuffActiveTimer(18, 112944, nil, nil, nil, 6)
local timerBreathCD = mod:NewNextTimer(18, 112944, nil, nil, nil, 3)--true CD, 43 seconds, same as Furlwind, which is what makes their interaction with eachother predictable.
--Notes:
--5/2 13:55:03.578 SPELL_CAST_SUCCESS,0xF130DD8D0000748B,"Hoptallus",0xa48,0x0,0x0000000000000000,nil,0x80000000,0x80000000,114366,"Hoptallus Keg Scene",0x1
--Not sure if ENGAGE fires on above event, or when he's attackable.
--right now combat start timers are based on when attackable.
--Adds triggers don't show in combat log or emotes, will probably require transcriptor to monitor UNIT cast events.
--Maybe add a warning to switch and dps boppers and get em down, or a hammer spawned warning after they die, or both.
function mod:OnCombatStart(delay)
timerFurlwindCD:Start(15-delay)
end
function mod:SPELL_CAST_START(args)
if args.spellId == 112992 then
specWarnFurlwind:Show()
specWarnFurlwind:Play("justrun")
timerFurlwind:Start()
timerBreathCD:Start()--Always 18 seconds after Furlwind
elseif args.spellId == 112944 then
specWarnCarrotBreath:Show()
specWarnCarrotBreath:Play("shockwave")
timerBreath:Start()
timerFurlwindCD:Start()--Always 25 seconds after Carrot Breath
end
end