mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-08 22:50:00 +00:00
GUID replacements
* Replace all `local _, guid = UnitExists(unit)` with `GetUnitGUID(unit)` (Nampower 3.0.0+) * Bump minimum required Nampower version to 3.0.0
This commit is contained in:
+2
-2
@@ -68,7 +68,7 @@ UnitChannelInfo = function(unit)
|
||||
guid = unit -- unit IS the GUID
|
||||
elseif pfValidUnits[unit] and UnitExists then
|
||||
-- unit is a token like "target" - get GUID from it
|
||||
local _, unitGuid = UnitExists(unit)
|
||||
local unitGuid = GetUnitGUID(unit)
|
||||
guid = unitGuid
|
||||
end
|
||||
|
||||
@@ -167,7 +167,7 @@ UnitCastingInfo = function(unit)
|
||||
guid = unit -- unit IS the GUID
|
||||
elseif pfValidUnits[unit] and UnitExists then
|
||||
-- unit is a token like "target" - get GUID from it
|
||||
local _, unitGuid = UnitExists(unit)
|
||||
local unitGuid = GetUnitGUID(unit)
|
||||
guid = unitGuid
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user