local mod = DBM:NewMod("TheAzurevaultTrash", "DBM-Party-Dragonflight", 6) local L = mod:GetLocalizedStrings() mod:SetRevision("20221115231757") --mod:SetModelID(47785) mod.isTrashMod = true mod:RegisterEvents( "SPELL_CAST_START 391136 370764", "SPELL_CAST_SUCCESS 374885", "SPELL_AURA_APPLIED 371007" -- "SPELL_AURA_APPLIED_DOSE 339528", -- "SPELL_AURA_REMOVED 339525" ) local warnPiercingShards = mod:NewCastAnnounce(370764, 4) local warnSplinteringShards = mod:NewTargetAnnounce(371007, 2) local specWarnUnstablePower = mod:NewSpecialWarningDodge(374885, nil, nil, nil, 2, 2) local specWarnShoulderSlam = mod:NewSpecialWarningMoveAway(391136, nil, nil, nil, 1, 2) local yellShoulderSlam = mod:NewYell(391136) local specWarnSplinteringShards = mod:NewSpecialWarningMoveAway(371007, nil, nil, nil, 1, 2) local yellSplinteringShards = mod:NewYell(371007) --local specWarnSharedSuffering = mod:NewSpecialWarningYou(339607, nil, nil, nil, 1, 2) --local specWarnDirgefromBelow = mod:NewSpecialWarningInterrupt(310839, "HasInterrupt", nil, nil, 1, 2) --local playerName = UnitName("player") --Antispam IDs for this mod: 1 run away, 2 dodge, 3 dispel, 4 incoming damage, 5 you/role, 6 misc function mod:ShoulderSlamTarget(targetname) if not targetname then return end if targetname == UnitName("player") then if self:AntiSpam(4, 5) then specWarnShoulderSlam:Show() specWarnShoulderSlam:Play("runout") end yellShoulderSlam:Yell() end end function mod:SPELL_CAST_START(args) local spellId = args.spellId if spellId == 391136 then self:ScheduleMethod(0.1, "BossTargetScanner", args.sourceGUID, "ShoulderSlamTarget", 0.1, 8) elseif spellId == 370764 and self:AntiSpam(5, 6) then warnPiercingShards:Show() -- elseif spellId == 310839 and self:CheckInterruptFilter(args.sourceGUID, false, true) then -- specWarnDirgefromBelow:Show(args.sourceName) -- specWarnDirgefromBelow:Play("kickcast") end end function mod:SPELL_CAST_SUCCESS(args) local spellId = args.spellId if spellId == 374885 and self:AntiSpam(5, 2) then specWarnUnstablePower:Show() specWarnUnstablePower:Play("watchstep") end end function mod:SPELL_AURA_APPLIED(args) if not self.Options.Enabled then return end local spellId = args.spellId if spellId == 371007 then warnSplinteringShards:CombinedShow(0.5, args.destName) if args:IsPlayer() then specWarnSplinteringShards:Show() specWarnSplinteringShards:Play("runout") yellSplinteringShards:Yell() end end end --mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED --[[ function mod:SPELL_AURA_REMOVED(args) local spellId = args.spellId if spellId == 339525 and args:IsPlayer() then end end --]]