Co-authored-by: Szyler <Szyler@Szyler.com>
This commit is contained in:
Szyler
2024-03-03 19:23:13 +01:00
committed by GitHub
parent 00255736e5
commit dc8afd6584
53 changed files with 2770 additions and 301 deletions
+11 -10
View File
@@ -29,11 +29,11 @@ function mod:OnCombatStart(delay)
timerNextCurse:Start()
end
function mod:warnFistTargets()
warnFist:Show(table.concat(FistTargets, "<, >"))
timerFist:Start(7-delay)
table.wipe(FistTargets)
end
-- function mod:warnFistTargets() -- too spammy
-- warnFist:Show(table.concat(FistTargets, "<, >"))
-- timerFist:Start(7-delay)
-- table.wipe(FistTargets)
-- end
-- function mod:SPELL_CAST_SUCCESS(args)
-- if args:IsSpellID(19716) then
@@ -45,11 +45,12 @@ end
-- end
function mod:SPELL_AURA_APPLIED(args)
if args:IsSpellID(20277) and args:IsDestTypePlayer() then
self:UnscheduleMethod("warnFistTargets")
FistTargets[#FistTargets + 1] = args.destName
self:ScheduleMethod(0.3, "warnFistTargets")
elseif args:IsSpellID(20277) then
-- if args:IsSpellID(20277) and args:IsDestTypePlayer() then
-- self:UnscheduleMethod("warnFistTargets")
-- FistTargets[#FistTargets + 1] = args.destName
-- self:ScheduleMethod(0.3, "warnFistTargets")
-- else
if args:IsSpellID(20277) then
if args:IsPlayer() then
specWarnRain:Show()
end
+4 -7
View File
@@ -11,7 +11,7 @@ mod:RegisterEvents(
"SPELL_PERIODIC_DAMAGE"
)
mod:AddBoolOption(L.CaveinYellOpt)
mod:AddBoolOption(L.CaveinYellOpt, false)
local CaveInSpam = 0
local warnTrust = mod:NewSpellAnnounce(20553)
@@ -35,14 +35,11 @@ function mod:SPELL_AURA_APPLIED(args)
elseif args:IsSpellID(350098, 975009) then
if args:IsPlayer() then
warnCaveIn:Show()
if self.Options.CaveinYellOpt then
if self.Options.CaveinYellOpt and DBM:AntiSpam(5, 1) then
SendChatMessage(L.CaveinYell, "YELL")
end
end
if GetTime() > CaveInSpam then
CaveInSpam = GetTime()
timerNextCaveIn:Start()
end
timerNextCaveIn:Start()
end
end
@@ -50,7 +47,7 @@ function mod:SPELL_PERIODIC_DAMAGE(args)
if args:IsSpellID(350098, 975009) then
if args:IsPlayer() then
warnCaveIn:Show()
if self.Options.CaveinYellOpt then
if self.Options.CaveinYellOpt and DBM:AntiSpam(5, 1) then
SendChatMessage(L.CaveinYell, "YELL")
end
end
+5 -5
View File
@@ -13,7 +13,7 @@ mod:RegisterEvents(
"CHAT_MSG_MONSTER_YELL"
)
local timerCombatStart = mod:NewTimer(78, "TimerCombatStart", 2457)
local timerCombatStart = mod:NewTimer(68, "TimerCombatStart", 2457)
local warnSunder = mod:NewAnnounce(L.RagFire, 2, 2105107)
local warnHand = mod:NewSpellAnnounce(2105119)
@@ -46,10 +46,10 @@ function mod:OnCombatStart(delay)
end
function mod:Emerged()
timerNextHand:Start(-delay)
warnSubmergeSoon:Schedule(85-delay)
timerSubmerge:Start(-delay)
timerEmerge:Schedule(90-delay)
timerNextHand:Start()
warnSubmergeSoon:Schedule(85)
timerSubmerge:Start()
timerEmerge:Schedule(90)
self:ScheduleMethod(150, "Emerged")
end
+1 -1
View File
@@ -60,7 +60,7 @@ end
function mod:SPELL_CAST_START(args)
if args:IsSpellID(2105085, 2105086) or args:IsSpellID(2105087, 2105088) then
timerNextExplo:Start()
warnCastExplo:Start()
warnCastExplo:Show()
timerExplo:Start()
end
end
+11 -10
View File
@@ -29,28 +29,29 @@ function mod:OnCombatStart(delay)
table.wipe(HandofRagTargets)
end
function mod:warnHandofRagTargets()
warnHandRagnaros:Show(table.concat(HandofRagTargets, "<, >"))
timerHandRagnaros:Start()
table.wipe(HandofRagTargets)
end
-- function mod:warnHandofRagTargets() -- too spammy
-- warnHandRagnaros:Show(table.concat(HandofRagTargets, "<, >"))
-- timerHandRagnaros:Start()
-- table.wipe(HandofRagTargets)
-- end
function mod:SPELL_AURA_APPLIED(args)
-- if args:IsSpellID(19779) then
-- warnInspire:Show(args.destName)
-- timerInspire:Start(args.destName)
-- else
if args:IsSpellID(19780) and args:IsDestTypePlayer() then
self:UnscheduleMethod("warnHandofRagTargets")
HandofRagTargets[#HandofRagTargets + 1] = args.destName
self:ScheduleMethod(0.3, "warnHandofRagTargets")
-- if args:IsSpellID(19780) and args:IsDestTypePlayer() then
-- self:UnscheduleMethod("warnHandofRagTargets")
-- HandofRagTargets[#HandofRagTargets + 1] = args.destName
-- self:ScheduleMethod(0.3, "warnHandofRagTargets")
-- elseif args:IsSpellID(19776) then
-- warnShadowPain:Show(args.destName)
-- timerShadowPain:Start(args.destName)
-- elseif args:IsSpellID(20294) then
-- warnImmolate:Show(args.destName)
-- timerImmolate:Start(args.destName)
end
-- end
end
-- function mod:SPELL_AURA_REMOVED(args)