Skip to content

Commit

Permalink
proper fix for IsSpellInRange on TWW
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds authored and Stanzilla committed Jun 11, 2024
1 parent 147ac36 commit d381d91
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 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 = 17
local MINOR_VERSION = 18

---@class lib
local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
Expand Down Expand Up @@ -76,7 +76,15 @@ local UnitIsUnit = UnitIsUnit
local UnitGUID = UnitGUID
local UnitIsDeadOrGhost = UnitIsDeadOrGhost
local CheckInteractDistance = CheckInteractDistance
local IsSpellInRange = IsSpellInRange or C_Spell.IsSpellInRange
local IsSpellInRange = IsSpellInRange or function(id)
local result = C_Spell.IsSpellInRange(id)
if result == true then
return 1
elseif result == false then
return 0
end
return nil
end
local UnitClass = UnitClass
local UnitRace = UnitRace
local GetInventoryItemLink = GetInventoryItemLink
Expand Down

0 comments on commit d381d91

Please sign in to comment.