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.

63 lines
2.2 KiB

local mod = DBM:NewMod(569, "DBM-Party-BC", 3, 259)
local L = mod:GetLocalizedStrings()
mod.statTypes = "normal,heroic,timewalker"
mod:SetRevision("20200912133955")
mod:SetCreatureID(16808)
mod:SetEncounterID(1938)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"UNIT_SPELLCAST_START boss1"
)
--186782 Some Random Orc Icon. Could not find red fel orc icon. Only green orcs or brown orcs. Brown closer to red than green is.
local warnHeathenGuard = mod:NewCountAnnounce("ej5927", 2, 186782)
local warnReaverGuard = mod:NewCountAnnounce("ej5930", 2, 186782)
local warnSharpShooterGuard = mod:NewCountAnnounce("ej5934", 2, 186782)
local specWarnBladeDance = mod:NewSpecialWarningSpell(30739, nil, nil, nil, 2, 2)
local timerHeathenCD = mod:NewNextTimer(21, "ej5927", nil, nil, nil, 1, 186782)
local timerReaverCD = mod:NewNextTimer(21, "ej5930", nil, nil, nil, 1, 186782)
local timerSharpShooterCD = mod:NewNextTimer(21, "ej5934", nil, nil, nil, 1, 186782)
local timerBladeDanceCD = mod:NewCDTimer(35, 30739, nil, nil, nil, 2)
mod.vb.addSet = 0
mod.vb.addType = 0
local function Adds(self)
self.vb.addSet = self.vb.addSet + 1
self.vb.addType = self.vb.addType + 1
if self.vb.addType == 1 then--Heathen
warnHeathenGuard:Show(self.vb.addSet.."-"..self.vb.addType)
timerReaverCD:Start()
elseif self.vb.addType == 2 then--Reaver
warnReaverGuard:Show(self.vb.addSet.."-"..self.vb.addType)
timerSharpShooterCD:Start()
elseif self.vb.addType == 3 then--SharpShooter
warnSharpShooterGuard:Show(self.vb.addSet.."-"..self.vb.addType)
timerHeathenCD:Start()
self.vb.addType = 0
end
self:Schedule(21, Adds, self)
end
function mod:OnCombatStart(delay)
self.vb.addSet = 0
self.vb.addType = 0
timerHeathenCD:Start(27.5-delay)
self:Schedule(27.5, Adds, self)--When reaches stairs, not when enters/spawns way down hallway.
timerBladeDanceCD:Start(72-delay)
end
--Change to no sync if blizz adds IEEU(boss1)
function mod:UNIT_SPELLCAST_START(uId, _, spellId)
if spellId == 30738 then -- Blade Dance Targeting
specWarnBladeDance:Show()
timerBladeDanceCD:Start()
specWarnBladeDance:Play("aesoon")
end
end