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
+1 -1
View File
@@ -601,7 +601,7 @@ hooksecurefunc (_G, "DeathRecap_LoadUI", function()
hooksecurefunc (_G, "DeathRecapFrame_OpenRecap", function(RecapID)
local currentCombat = Details:GetCurrentCombat()
--get the player current death and link the death table with the death recapID
local playerDeaths = currentCombat:GetPlayerDeaths(UnitName("player"))
local playerDeaths = currentCombat:GetPlayerDeaths(Details.playername)
if (playerDeaths) then
local latestDeath = playerDeaths[#playerDeaths]
if (latestDeath) then