SuperWoW dependency fully removed

Read the Readme for more informations please.
This commit is contained in:
Meow
2026-03-02 13:05:22 +01:00
parent c7aca0de99
commit b91ef05a96
8 changed files with 87 additions and 94 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
-- load pfUI environment
setfenv(1, pfUI:GetEnvironment())
local superwow_active = HasSuperWoW()
--[[ librange ]]--
-- A pfUI library that detects and caches distance to units.
--
@@ -197,7 +195,7 @@ librange:SetScript("OnUpdate", function()
end
-- try to read distance via superwow second
if superwow_active then
if HasSuperWoW() and UnitPosition then
local x1, y1, z1 = UnitPosition("player")
local x2, y2, z2 = UnitPosition(unit)
-- only continue if we got position values