mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 02:30:50 +00:00
SuperWoW dependency fully removed
Read the Readme for more informations please.
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user