Clean up most modern GUID usage.

This commit is contained in:
andrew6180
2024-05-20 13:13:52 -07:00
parent bd68720db3
commit 90a085acf0
5 changed files with 56 additions and 71 deletions
+1 -12
View File
@@ -229,18 +229,7 @@ function openRaidLib.GearManager.BuildPlayerEquipmentList()
end
local playerHasPetOfNpcId = function(npcId)
if (UnitExists("pet") and UnitHealth("pet") >= 1) then
local guid = UnitGUID("pet")
if (guid) then
local split = {strsplit("-", guid)}
local playerPetNpcId = tonumber(split[6])
if (playerPetNpcId) then
if (npcId == playerPetNpcId) then
return true
end
end
end
end
return false -- 3.3.5 cant get if a pet GUID is a specific npc or not.
end
local addCooldownToTable = function(cooldowns, cooldownsHash, cooldownSpellId, timeNow)