Skip to content

Commit

Permalink
Fix some spam
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalOS committed May 19, 2024
1 parent 98775be commit 5351eb0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions DBM-TimelessIsle/IsleTimeless.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,18 @@ function mod:SPELL_CAST_START(args)
elseif spellId == 148004 then
specWarnConjurKiln:Show()
specWarnConjurKiln:Play("targetchange")
elseif spellId == 147674 then
elseif spellId == 147674 and self:AntiSpam(3, 2) then
specWarnCracklingBlow:Show()
specWarnCracklingBlow:Play("shockwave")
elseif spellId == 148003 then
elseif spellId == 148003 and self:AntiSpam(3, 2) then
specWarnBlazingBlow:Show()
specWarnBlazingBlow:Play("shockwave")
elseif spellId == 148001 then
warnConjurGolem:Show()
elseif spellId == 147998 then
elseif spellId == 147998 and self:AntiSpam(3, 2) then
specWarnFireStorm:Show()
specWarnFireStorm:Play("watchstep")
elseif spellId == 147723 then
elseif spellId == 147723 and self:AntiSpam(3, 2) then
specWarnFallingFlames:Show()
specWarnFallingFlames:Play("watchstep")
elseif spellId == 147818 then
Expand All @@ -124,8 +124,11 @@ end
function mod:SPELL_AURA_APPLIED_DOSE(args)
local spellId = args.spellId
if spellId == 147655 and args:IsPlayer() then
specWarnFrogToxin:Show(args.amount or 1)
specWarnFrogToxin:Play("stackhigh")
local amount = args.amount or 1
if (amount % 3 == 0) or amount >= 7 then
specWarnFrogToxin:Show(args.amount or 1)
specWarnFrogToxin:Play("stackhigh")
end
end
end

Expand Down

0 comments on commit 5351eb0

Please sign in to comment.