Skip to content

Commit

Permalink
Legion/DarkheartThicket/ArchdruidGlaidalis: Remove pre-10.2 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Nov 8, 2023
1 parent 9f74594 commit 7b2a776
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions Legion/DarkheartThicket/ArchdruidGlaidalis.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
local isTenDotTwo = select(4, GetBuildInfo()) >= 100200 --- XXX delete when 10.2 is live everywhere
--------------------------------------------------------------------------------
-- Module Declaration
--
Expand Down Expand Up @@ -49,12 +48,7 @@ function mod:OnBossEnable()
self:Log("SPELL_AURA_APPLIED", "NightfallDamage", 198408)
self:Log("SPELL_PERIODIC_DAMAGE", "NightfallDamage", 198408)
self:Log("SPELL_PERIODIC_MISSED", "NightfallDamage", 198408)
if isTenDotTwo then
self:Log("SPELL_CAST_SUCCESS", "GrievousLeap", 196354)
else
-- XXX delete when 10.2 is live everywhere
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "boss1") -- Grievous Leap
end
self:Log("SPELL_CAST_SUCCESS", "GrievousLeap", 196354)
self:Log("SPELL_AURA_APPLIED", "GrievousTearApplied", 196376)

-- Nightmare Abomination
Expand Down Expand Up @@ -168,15 +162,6 @@ do
end
end

-- XXX pre-10.2 Grievous Leap compat
function mod:UNIT_SPELLCAST_SUCCEEDED(_, _, _, spellId)
if spellId == 196354 then -- Grievous Leap
self:GrievousLeap({
spellId = spellId,
})
end
end

function mod:GrievousLeap(args)
self:Message(args.spellId, "yellow")
self:PlaySound(args.spellId, "alarm")
Expand Down

0 comments on commit 7b2a776

Please sign in to comment.