From e51d211fba45cf3adf03ea9c5e0f6edb1ae35982 Mon Sep 17 00:00:00 2001 From: Zidras <10605951+Zidras@users.noreply.github.com> Date: Sun, 11 Feb 2024 23:30:58 +0000 Subject: [PATCH] NP: add compatibility with VirtualPlates For some reason, the addon changes AwesomeWotlk API behaviour and ElvUI frame is no longer at the same place. --- ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua b/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua index f06d6b8..497db3a 100644 --- a/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua +++ b/ElvUI_ProjectZidras/Modules/Nameplates/Nameplates.lua @@ -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