libpredict: trigger aura events of relevant unitframes

This commit is contained in:
shagu
2024-11-04 15:17:56 +01:00
parent b56836d2eb
commit 3d3e550ee0
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -1472,6 +1472,9 @@ function pfUI.uf:RefreshUnit(unit, component)
local unitstr = unit.label..unit.id
local rawborder, default_border = GetBorderSize("unitframes")
-- save current values
unit.namecache = UnitName(unitstr)
-- Buffs
if unit.buffs and ( component == "all" or component == "aura" ) then
local texture, stacks
+7
View File
@@ -182,6 +182,13 @@ function libpredict:Hot(sender, target, spell, duration)
hots[target][spell].duration = duration
hots[target][spell].start = GetTime()
-- update aura events of relevant unitframes
for _, frame in pairs(pfUI.uf.frames) do
if frame.namecache == target then
frame.update_aura = true
end
end
end
function libpredict:HealStop(sender)