Skip to content

Commit

Permalink
Applied combat filters to all mob casts in torghast, to avoid situati…
Browse files Browse the repository at this point in the history
…ons where mobs fighting other mobs would cause some warnings to go off. Downside, this also has a chance to have warnings NOT go off if you or someone in your party isn't targetting the caster.
  • Loading branch information
MysticalOS committed Nov 29, 2020
1 parent b671c1f commit b974243
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DBM-Challenges/Shadowlands/Torghast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ end

function mod:SPELL_CAST_START(args)
local spellId = args.spellId
if not self:IsValidWarning(args.sourceGUID) then return end--Filter all casts done by mobs in combat with npcs/other mobs.
if spellId == 292903 and self:AntiSpam(3, 2) then
specWarnMassiveStrike:Show()
specWarnMassiveStrike:Play("shockwave")
Expand Down Expand Up @@ -192,10 +193,10 @@ function mod:SPELL_AURA_APPLIED(args)
specWarnBoneShrapnel:Show(amount)
specWarnBoneShrapnel:Play("stackhigh")
end
elseif spellId == 304093 and args:IsDestTypePlayer() and self:CheckDispelFilter() then
elseif spellId == 304093 and self:IsValidWarning(args.destGUID) and args:IsDestTypePlayer() and self:CheckDispelFilter() then
specWarnMassCripple:CombinedShow(0.5, args.destName)
specWarnMassCripple:ScheduleVoice(0.5, "helpdispel")
elseif spellId == 294526 and args:IsDestTypePlayer() and self:CheckDispelFilter() then
elseif spellId == 294526 and self:IsValidWarning(args.destGUID) and args:IsDestTypePlayer() and self:CheckDispelFilter() then
specWarnCurseofFrailtyDispel:CombinedShow(0.5, args.destName)
specWarnCurseofFrailtyDispel:ScheduleVoice(0.5, "helpdispel")
end
Expand Down

0 comments on commit b974243

Please sign in to comment.