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.
51 lines
1.7 KiB
51 lines
1.7 KiB
local mod = DBM:NewMod(421, "DBM-Party-Vanilla", DBM:IsPostCata() and 4 or 7, 231)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20240316010232")
|
|
mod:SetCreatureID(6235)
|
|
mod:SetEncounterID(mod:IsClassic() and 2770 or 380)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_START 11082 11085",
|
|
"SPELL_CAST_SUCCESS 11084"
|
|
)
|
|
|
|
local warningShock = mod:NewSpellAnnounce(11084, 2, nil, "Tank|Healer")
|
|
|
|
local specWarnMegavolt = mod:NewSpecialWarningInterrupt(11082, "HasInterrupt", nil, nil, 1, 2)
|
|
local specWarnChainBolt = mod:NewSpecialWarningInterrupt(11085, "HasInterrupt", nil, nil, 1, 2)
|
|
|
|
local timerMegavoltCD = mod:NewAITimer(180, 11082, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)
|
|
local timerChainBoltCD = mod:NewAITimer(180, 11085, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)
|
|
local timerShockCD = mod:NewAITimer(180, 11084, nil, "Tank|Healer", nil, 5, nil, DBM_COMMON_L.TANK_ICON)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerMegavoltCD:Start(1-delay)
|
|
timerChainBoltCD:Start(1-delay)
|
|
timerShockCD:Start(1-delay)
|
|
end
|
|
|
|
function mod:SPELL_CAST_START(args)
|
|
if args:IsSpell(11082) then
|
|
timerMegavoltCD:Start()
|
|
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
|
|
specWarnMegavolt:Show(args.sourceName)
|
|
specWarnMegavolt:Play("kickcast")
|
|
end
|
|
elseif args:IsSpell(11085) then
|
|
timerChainBoltCD:Start()
|
|
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
|
|
specWarnChainBolt:Show(args.sourceName)
|
|
specWarnChainBolt:Play("kickcast")
|
|
end
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args:IsSpell(11084) then
|
|
warningShock:Show()
|
|
timerShockCD:Start()
|
|
end
|
|
end
|
|
|