Skip to content

Commit

Permalink
NP: force aura recheck on NAME_PLATE_UNIT_ADDED
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Sep 19, 2023
1 parent 3c4f117 commit 84c131f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local PZ, T, E, L, V, P, G = unpack(select(2, ...))
local ZNP = PZ.NamePlates
local NP = E.NamePlates
local LAI = E.Libs.LAI

local pairs = pairs
local twipe = table.wipe
Expand Down Expand Up @@ -462,6 +463,7 @@ function ZNP:NAME_PLATE_UNIT_ADDED(_, unit)
frame.unit = unit
frame.nameplateUnit = unit

LAI.frame:UNIT_AURA(_, unit) -- force recheck nameplate auras with nameplate unitID to avoid having to mouseover
OnShowHook(plate)
end) -- Delay needed since ElvUI plate (plate.UnitFrame) is created a few frames after this event
end
Expand Down

0 comments on commit 84c131f

Please sign in to comment.