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.
69 lines
2.2 KiB
69 lines
2.2 KiB
local mod = DBM:NewMod(487, "DBM-Party-Vanilla", 15, 241)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20221029204017")
|
|
mod:SetCreatureID(7796, 7275)--nekrum-gutchewer, shadowpriest-sezzziz
|
|
mod:SetEncounterID(598, 599)--Each boss has it's own encounter ID?
|
|
mod:DisableEEKillDetection()--So we have to disable using encounter events for win detection since you don't win until BOTH died
|
|
mod:DisableBKKillDetection()
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_START 8362 12039",
|
|
"SPELL_CAST_SUCCESS 13704",
|
|
"SPELL_AURA_APPLIED 8600",
|
|
"UNIT_DIED"
|
|
)
|
|
|
|
local warningFeveredPlague = mod:NewTargetNoFilterAnnounce(8600, 2, nil, "RemoveDisease")
|
|
|
|
local specWarnRenew = mod:NewSpecialWarningInterrupt(8362, "HasInterrupt", nil, nil, 1, 2)
|
|
local specWarnHeal = mod:NewSpecialWarningInterrupt(12039, "HasInterrupt", nil, nil, 1, 2)
|
|
|
|
local timerRenewCD = mod:NewAITimer(180, 8362, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON..DBM_COMMON_L.MAGIC_ICON)
|
|
local timerHealCD = mod:NewAITimer(180, 12039, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)
|
|
local timerPsychicScreamCD = mod:NewAITimer(180, 13704, nil, nil, nil, 2)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerRenewCD:Start(1-delay)
|
|
timerHealCD:Start(1-delay)
|
|
timerPsychicScreamCD:Start(1-delay)
|
|
end
|
|
|
|
function mod:SPELL_CAST_START(args)
|
|
if args.spellId == 8362 then
|
|
timerRenewCD:Start()
|
|
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
|
|
specWarnRenew:Show(args.sourceName)
|
|
specWarnRenew:Play("kickcast")
|
|
end
|
|
elseif args.spellId == 12039 then
|
|
timerHealCD:Start()
|
|
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
|
|
specWarnHeal:Show(args.sourceName)
|
|
specWarnHeal:Play("kickcast")
|
|
end
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args.spellId == 13704 then
|
|
timerPsychicScreamCD:Start()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args.spellId == 8600 and self:CheckDispelFilter("disease") then
|
|
warningFeveredPlague:Show(args.destName)
|
|
end
|
|
end
|
|
|
|
function mod:UNIT_DIED(args)
|
|
local cid = self:GetCIDFromGUID(args.destGUID)
|
|
if cid == 7275 then--sezzziz
|
|
timerRenewCD:Stop()
|
|
timerHealCD:Stop()
|
|
timerPsychicScreamCD:Stop()
|
|
end
|
|
end
|
|
|