Scan on "PLAYER_ALIVE" Event changed to only execute when player releases spirit (not on "Feign Death" or resurrect by player)

This commit is contained in:
telkar-rg
2025-07-21 15:15:00 +02:00
parent edbfb74d83
commit fdcb25a94d
13 changed files with 39 additions and 0 deletions
@@ -87,6 +87,9 @@ local function OnPlayerMoney()
end
local function OnPlayerAlive()
-- print("DataStore_Characters.lua") -- DEBUG 2025 07 21
if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard
local character = addon.ThisCharacter
character.name = UnitName("player") -- to simplify processing a bit, the name is saved in the table too, in addition to being part of the key