Round of fixes, cleanups and library upgrades

This commit is contained in:
Tercio Jose
2023-07-29 13:19:11 -03:00
parent f41ecaf908
commit 89e6ffd8af
9 changed files with 470 additions and 389 deletions
+14
View File
@@ -81,6 +81,20 @@
---@param unitSerial serial
---@return unit|nil unitId
function Details:FindUnitIDByUnitSerial(unitSerial)
--target
if (UnitExists("target")) then
if (UnitGUID("target") == unitSerial) then
return "target"
end
end
--focus
if (UnitExists("focus")) then
if (UnitGUID("focus") == unitSerial) then
return "focus"
end
end
--boss
for i = 1, 9 do
local unitId = Details222.UnitIdCache.Boss[i]