Skip to content

Commit

Permalink
NP: add compatibility with VirtualPlates
Browse files Browse the repository at this point in the history
For some reason, the addon changes AwesomeWotlk API behaviour and ElvUI frame is no longer at the same place.
  • Loading branch information
Zidras committed Feb 11, 2024
1 parent 31556db commit e51d211
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,10 @@ function ZNP:NAME_PLATE_UNIT_ADDED(_, unit)
local plate = GetNamePlateForUnit(unit)
E:Delay(0.05, function()
local frame = plate.UnitFrame
if not frame then -- Compatibility with VirtualPlates
frame = plate:GetChildren().UnitFrame
plate = plate:GetChildren()
end
local _, unitType = NP:GetUnitInfo(frame)
frame.guid = UnitGUID(unit)
frame.unit = unit
Expand Down

0 comments on commit e51d211

Please sign in to comment.