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.
36 lines
795 B
36 lines
795 B
local mod = DBM:NewMod(478, "DBM-Party-Vanilla", 14, 240)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20221029204017")
|
|
mod:SetCreatureID(3674)
|
|
mod:SetEncounterID(589)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_START 6254"
|
|
)
|
|
|
|
--TODO, fix range to one classic actually supports
|
|
local timerChainedBoltCD = mod:NewAITimer(180, 6254, nil, nil, nil, 3)
|
|
|
|
mod:AddRangeFrameOption(6, 6254)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerChainedBoltCD:Start(1-delay)
|
|
if self.Options.RangeFrame then
|
|
DBM.RangeCheck:Show(6)
|
|
end
|
|
end
|
|
|
|
function mod:OnCombatEnd()
|
|
if self.Options.RangeFrame then
|
|
DBM.RangeCheck:Hide()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_CAST_START(args)
|
|
if args.spellId == 6254 then
|
|
timerChainedBoltCD:Start()
|
|
end
|
|
end
|
|
|