Skip to content

Commit

Permalink
Workaround IsSpellInRange & GetSpellBookItemName moved to C_* namespa…
Browse files Browse the repository at this point in the history
…ce on TWW
  • Loading branch information
mrbuds authored and Stanzilla committed Jun 11, 2024
1 parent b1e99b0 commit 147ac36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LibRangeCheck-3.0/LibRangeCheck-3.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ License: MIT
-- @class file
-- @name LibRangeCheck-3.0
local MAJOR_VERSION = "LibRangeCheck-3.0"
local MINOR_VERSION = 16
local MINOR_VERSION = 17

---@class lib
local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
Expand All @@ -67,7 +67,7 @@ local tremove = tremove
local tostring = tostring
local setmetatable = setmetatable
local BOOKTYPE_SPELL = BOOKTYPE_SPELL or Enum.SpellBookSpellBank.Player
local GetSpellBookItemName = GetSpellBookItemName
local GetSpellBookItemName = GetSpellBookItemName or C_SpellBook.GetSpellBookItemName
local C_Item = C_Item
local UnitCanAttack = UnitCanAttack
local UnitCanAssist = UnitCanAssist
Expand All @@ -76,7 +76,7 @@ local UnitIsUnit = UnitIsUnit
local UnitGUID = UnitGUID
local UnitIsDeadOrGhost = UnitIsDeadOrGhost
local CheckInteractDistance = CheckInteractDistance
local IsSpellInRange = IsSpellInRange
local IsSpellInRange = IsSpellInRange or C_Spell.IsSpellInRange
local UnitClass = UnitClass
local UnitRace = UnitRace
local GetInventoryItemLink = GetInventoryItemLink
Expand Down

0 comments on commit 147ac36

Please sign in to comment.