Skip to content

Commit

Permalink
[Statuses\Range] Fix Range In Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed Sep 30, 2024
1 parent 8868d20 commit 264dbcc
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Statuses/Range.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
local _, Plexus = ...
local L = Plexus.L

local GetSpellInfo = C_Spell and C_Spell.GetSpellInfo or GetSpellInfo
local IsSpellInRange = C_Spell and C_Spell.IsSpellInRange or IsSpellInRange
local GetSpellInfo = C_Spell and C_Spell.GetSpellInfo and C_Spell.GetSpellInfo or GetSpellInfo
local IsSpellInRange = C_Spell and C_Spell.IsSpellInRange and C_Spell.IsSpellInRange or IsSpellInRange
local UnitClass = UnitClass
local UnitInRange = UnitInRange
local UnitIsDead = UnitIsDead
Expand Down Expand Up @@ -83,14 +83,8 @@ function PlexusStatusRange:OnStatusDisable()
end

local function GetSpellName(spellid)
local info = GetSpellInfo(spellid)
if Plexus:IsRetailWow() then
if info and info.name then
return info.name
end
else
return info
end
local info = C_Spell.GetSpellName and C_Spell.GetSpellName(spellid) or GetSpellInfo(spellid)
return info
end

local resSpell
Expand Down

0 comments on commit 264dbcc

Please sign in to comment.