From 147ac367ac42e5bb34d17c4a613d424f44ba4f66 Mon Sep 17 00:00:00 2001 From: Buds Date: Wed, 12 Jun 2024 00:15:05 +0200 Subject: [PATCH] Workaround IsSpellInRange & GetSpellBookItemName moved to C_* namespace on TWW --- LibRangeCheck-3.0/LibRangeCheck-3.0.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LibRangeCheck-3.0/LibRangeCheck-3.0.lua b/LibRangeCheck-3.0/LibRangeCheck-3.0.lua index 5a377fa..55aa52c 100644 --- a/LibRangeCheck-3.0/LibRangeCheck-3.0.lua +++ b/LibRangeCheck-3.0/LibRangeCheck-3.0.lua @@ -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) @@ -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 @@ -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