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.
139 lines
4.6 KiB
139 lines
4.6 KiB
local mod = DBM:NewMod(2468, "DBM-Shadowlands", nil, 1192)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20220407232307")
|
|
mod:SetCreatureID(182466)
|
|
mod:SetEncounterID(2550)
|
|
mod:SetReCombatTime(20)
|
|
mod:EnableWBEngageSync()--Enable syncing engage in outdoors
|
|
--mod:SetMinSyncRevision(11969)
|
|
|
|
mod:RegisterCombat("combat")
|
|
--mod:RegisterCombat("combat_yell", L.Pull)
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_START 361209 361387",
|
|
"SPELL_SUMMON 361341",
|
|
"SPELL_AURA_APPLIED 361632 361390",
|
|
"SPELL_AURA_APPLIED_DOSE 361390",
|
|
"SPELL_AURA_REMOVED 361632",
|
|
"SPELL_PERIODIC_DAMAGE 361335",
|
|
"SPELL_PERIODIC_MISSED 361335"
|
|
)
|
|
|
|
--TODO, target scan furious slam? if it works swap the warnings around
|
|
--TODO, adjust tank swap stacks
|
|
--local warnFuriousSlam = mod:NewTargetNoFilterAnnounce(361209, 2)
|
|
local warnBanishmentMark = mod:NewTargetNoFilterAnnounce(361632, 2)
|
|
local warnDarkDeterrence = mod:NewStackAnnounce(361390, 2, nil, "Tank|Healer")
|
|
|
|
local specWarnFuriousSlam = mod:NewSpecialWarningDodge(361209, nil, nil, nil, 2, 2)
|
|
local specWarnDestructionCores = mod:NewSpecialWarningDodge(361341, nil, nil, nil, 2, 2)
|
|
local specWarnBanishmentMark = mod:NewSpecialWarningMoveAway(361632, nil, nil, nil, 1, 2)
|
|
local specWarnDarkDeterrence = mod:NewSpecialWarningStack(361390, nil, 3, nil, nil, 1, 6)
|
|
local specWarnDarkDeterrenceTaunt = mod:NewSpecialWarningTaunt(361390, nil, nil, nil, 1, 2)
|
|
local specWarnGTFO = mod:NewSpecialWarningGTFO(361335, nil, nil, nil, 1, 8)
|
|
|
|
local timerFuriousSlamCD = mod:NewCDTimer(74.7, 361209, nil, nil, nil, 3)
|
|
local timerDestructionCoresCD = mod:NewCDTimer(35.5, 361341, nil, nil, nil, 3)
|
|
local timerBanishmentMarkCD = mod:NewCDTimer(30.6, 361632, nil, nil, nil, 3, nil, DBM_COMMON_L.HEALER_ICON)
|
|
local timerDeterrentStrikeCD = mod:NewCDTimer(9.7, 361387, nil, nil, nil, 5, nil, DBM_COMMON_L.TANK_ICON)
|
|
|
|
mod:AddRangeFrameOption(5, 361632)
|
|
|
|
function mod:OnCombatStart(delay, yellTriggered)
|
|
-- if yellTriggered then
|
|
-- timerFuriousSlamCD:Start(1-delay)
|
|
-- timerDestructionCoresCD:Start(1-delay)
|
|
-- timerBanishmentMarkCD:Start(1-delay)
|
|
-- timerDeterrentStrikeCD:Start(1-delay)
|
|
-- end
|
|
if self.Options.RangeFrame then
|
|
DBM.RangeCheck:Hide()
|
|
end
|
|
end
|
|
|
|
function mod:OnCombatEnd()
|
|
if self.Options.InfoFrame then
|
|
DBM.InfoFrame:Hide()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_CAST_START(args)
|
|
local spellId = args.spellId
|
|
if spellId == 338858 and self:AntiSpam(12, 1) then
|
|
specWarnFuriousSlam:Show()
|
|
specWarnFuriousSlam:Play("shockwave")
|
|
timerFuriousSlamCD:Start()
|
|
elseif spellId == 361387 then
|
|
timerDeterrentStrikeCD:Start()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_SUMMON(args)
|
|
local spellId = args.spellId
|
|
if spellId == 361341 and self:AntiSpam(5, 2) then
|
|
specWarnDestructionCores:Show()
|
|
specWarnDestructionCores:Play("watchstep")
|
|
timerDestructionCoresCD:Start()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
local spellId = args.spellId
|
|
if spellId == 361632 then
|
|
warnBanishmentMark:CombinedShow(0.5, args.destName)
|
|
if self:AntiSpam(5, 3) then
|
|
timerBanishmentMarkCD:Start()
|
|
end
|
|
if args:IsPlayer() then
|
|
specWarnBanishmentMark:Show()
|
|
specWarnBanishmentMark:Play("range5")
|
|
if self.Options.RangeFrame then
|
|
DBM.RangeCheck:Show(5)
|
|
end
|
|
end
|
|
elseif spellId == 361390 then
|
|
local amount = args.amount or 1
|
|
if amount >= 3 then
|
|
if args:IsPlayer() then
|
|
specWarnDarkDeterrence:Show(amount)
|
|
specWarnDarkDeterrence:Play("stackhigh")
|
|
else
|
|
local _, _, _, _, _, expireTime = DBM:UnitDebuff("player", spellId)
|
|
local remaining
|
|
if expireTime then
|
|
remaining = expireTime-GetTime()
|
|
end
|
|
if (not remaining or remaining and remaining < 6.7) and not UnitIsDeadOrGhost("player") then--TODO, adjust remaining when Cd known
|
|
specWarnDarkDeterrenceTaunt:Show(args.destName)
|
|
specWarnDarkDeterrenceTaunt:Play("tauntboss")
|
|
else
|
|
warnDarkDeterrence:Show(args.destName, amount)
|
|
end
|
|
end
|
|
else
|
|
warnDarkDeterrence:Show(args.destName, amount)
|
|
end
|
|
end
|
|
end
|
|
mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED
|
|
|
|
function mod:SPELL_AURA_REMOVED(args)
|
|
local spellId = args.spellId
|
|
if spellId == 361632 then
|
|
if args:IsPlayer() then
|
|
if self.Options.RangeFrame then
|
|
DBM.RangeCheck:Hide()
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_PERIODIC_DAMAGE(_, _, _, _, destGUID, _, _, _, spellId, spellName)
|
|
if spellId == 361335 and destGUID == UnitGUID("player") and self:AntiSpam(2, 4) then
|
|
specWarnGTFO:Show(spellName)
|
|
specWarnGTFO:Play("watchfeet")
|
|
end
|
|
end
|
|
mod.SPELL_PERIODIC_MISSED = mod.SPELL_PERIODIC_DAMAGE
|
|
|