5.16 update (#1)

Co-authored-by: Szyler <Szyler@Szyler.com>
This commit is contained in:
Szyler
2022-12-01 22:16:16 +01:00
committed by GitHub
parent 39c0ed874e
commit 5b3b160e21
15 changed files with 293 additions and 221 deletions
+22 -6
View File
@@ -30,12 +30,17 @@ local warnImpale = mod:NewTargetAnnounce(2135824, 3) --2135823, 2135824, 213582
local timerBear = mod:NewTimer(45, "TimerBear", 39414)
local timerNormal = mod:NewTimer(30, "TimerNormal", 39414)
local specWarnCharge = mod:NewSpecialWarningYou(2135805)
local timerCharge1 = mod:NewTimer(13, "Charge (1)", 2135805)
local timerCharge2 = mod:NewTimer(14, "Charge (2)", 2135805)
local timerCharge3 = mod:NewTimer(15, "Charge (3)", 2135805)
local timerNextFury = mod:NewNextTimer(45, 2135837)
local timerNextRoar = mod:NewNextTimer(2135829, 14) -- HC 2135830 , ASC 10Man 2135831, ASC25man 2135832 --2136323 is ZUL'JIN ROAR!!!
local timerNextRend = mod:NewNextTimer(10, 2135833) --timer seems to not be constant, need to find out
local timerSpirit = mod:NewTargetTimer(15, 2135881)
local warnSpiritYou = mod:NewSpecialWarningYou(2135881)
local berserkTimer = mod:NewBerserkTimer(600)
local roarSpam = 0
@@ -46,6 +51,8 @@ local roarTimer = 0
function mod:OnCombatStart(delay)
berserkTimer:Start(-delay)
timerNextFury:Start()
timerCharge:Start(12)
-- timerCharge2:Start(13)
roarSpam = 0
roarCount = 0
roarTimer = 0
@@ -66,19 +73,28 @@ function mod:SPELL_AURA_APPLIED(args)
timerNextFury:Start()
elseif args:IsSpellID(2135837) then
specWarnFury:Show()
elseif args:IsSpellID(2135804, 2135805, 2135806, 2135807) and AntiSpam(5) then
timerCharge1:Start()
timerCharge2:Start()
timerCharge3:Start()
elseif args:IsSpellID(2135804, 2135805, 2135806, 2135807) and DBM:AntiSpam(5) then
timerCharge:Start()
-- timerCharge1:Start()
-- timerCharge2:Start()
-- timerCharge3:Start()
-- chargeCount = chargeCount+1
-- if chargeCount == 3 then
-- self:bearCharge()
-- end
if args:IsPlayer() and (args.amount and args.amount > 1) then
specWarnCharge:Show()
end
elseif args:IsSpellID(2135833, 2135834, 2135835, 2135836) then
specWarnRend:Show(args.destName)
timerNextRend:Start()
elseif args:IsSpellID(2135824, 2135825, 2135826, 2135827) then
warnImpale:Show(args.destName)
elseif args:IsSpellID(2135881) then
timerSpirit:Start(args.destName)
if args:IsPlayer() then
warnSpiritYou:Show()
end
end
end
@@ -98,7 +114,7 @@ function mod:SPELL_AURA_REMOVED(args)
end
function mod:SPELL_DAMAGE(args)
if args:IsSpellID(2135829, 2135830, 2135831, 2135832) and AntiSpam() then
if args:IsSpellID(2135829, 2135830, 2135831, 2135832) and DBM:AntiSpam() then
roarCount = roarCount + 1
roarTimer = math.max(3, 14-roarCount)
timerNextRoar:Start(roarTimer)
@@ -112,7 +128,7 @@ function mod:SPELL_CAST_START(args)
end
function mod:SPELL_SUMMON(args)
if args:IsSpellID(2135814) and AntiSpam() then
if args:IsSpellID(2135814) and DBM:AntiSpam() then
timerNextWhirling:Start()
end
end