Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Nov 19, 2023
1 parent 656e46a commit 6106eea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ElvUI/Core/Modules/Nameplates/Nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,10 @@ end

function NP:NamePlateCallBack(nameplate, event, unit)
if event == 'PLAYER_TARGET_CHANGED' then -- we need to check if nameplate exists in here
if nameplate then
nameplate.isDead = UnitIsDead(nameplate.unit)
end

NP:SetupTarget(nameplate, nameplate and nameplate.isDead) -- pass it, even as nil here
return -- don't proceed
elseif not nameplate or not nameplate.UpdateAllElements then
Expand Down

0 comments on commit 6106eea

Please sign in to comment.