Remove UnitIsUnit('player',X) checks, and change UnitName calls to use Details.playername

This commit is contained in:
Flamanis
2023-11-09 00:45:20 -06:00
parent bc0070cc6d
commit ce35713b50
10 changed files with 20 additions and 16 deletions
+2 -2
View File
@@ -427,7 +427,7 @@ function Details.packFunctions.PackDamage(combatObject)
local actorsToPack = {}
--get the player object from the combat > damage container
local playerName = UnitName("player")
local playerName = Details.playername
local playerObject = combatObject:GetActor(DETAILS_ATTRIBUTE_DAMAGE, playerName)
if (not playerObject) then
if (isDebugging) then
@@ -677,7 +677,7 @@ function Details.packFunctions.PackHeal(combatObject)
local actorsToPack = {}
--get the player object from the combat > damage container
local playerName = UnitName("player")
local playerName = Details.playername
local playerObject = combatObject:GetActor(DETAILS_ATTRIBUTE_HEAL, playerName)
if (not playerObject) then
if (isDebugging) then