Changing player detection by GUID

This commit is contained in:
Tercio Jose
2024-08-30 11:44:00 -03:00
committed by andrew6180
parent fe8b3536d1
commit defce45d74
3 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ function Details222.Pets.AkaarisSoulOwner(petGUID)
do
local ownerGUID = tooltipData.guid --tooltipData.guid seems to exists on all akari soul tooltips and point to the owner guid
if (ownerGUID) then
if (ownerGUID:find("^P")) then
if (ownerGUID:find("^Pl")) then
local playerGUID = ownerGUID
local actorObject = Details:GetActorFromCache(playerGUID) --quick cache only exists during conbat
if (actorObject) then
@@ -105,7 +105,7 @@ function Details222.Pets.AkaarisSoulOwner(petGUID)
local lineData = tooltipData.lines[i]
if (lineData.unitToken) then --unit token seems to exists when the add belongs to the "player"
local ownerGUID = UnitGUID(lineData.unitToken)
if (ownerGUID and ownerGUID:find("^P")) then
if (ownerGUID and ownerGUID:find("^Pl")) then
local playerGUID = ownerGUID
local actorObject = Details:GetActorFromCache(playerGUID) --quick cache only exists during conbat
if (actorObject) then