Implement nameplate sussing

This commit is contained in:
2024-11-05 21:37:12 +01:00
parent bf82421580
commit 98322f6b76
3 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
--NAME_PLATE_UNIT_ADDED
function(e, unit)
if not UnitIsPlayer(unit) then return end
local name = UnitName(unit)
local health = UnitHealth(unit)
local player = aura_env.GetPlayer(name)
player.health = health
player:QueryIfNecessary()
WeakAurasSaved.Cyka.Players[name] = player
end