fix elvui np anchoring

This commit is contained in:
NoM0Re
2025-01-17 13:12:05 +01:00
parent 858ba0ca5c
commit a3d856372e
@@ -308,9 +308,9 @@ function lib.GetUnitNameplate(unit)
local nameplate = C_NamePlate.GetNamePlateForUnit(unit) local nameplate = C_NamePlate.GetNamePlateForUnit(unit)
if nameplate then if nameplate then
-- credit to Exality for https://wago.io/explosiveorbs -- credit to Exality for https://wago.io/explosiveorbs
if nameplate.unitFrame and nameplate.unitFrame.Health then if nameplate.UnitFrame and nameplate.UnitFrame.Health then
-- elvui -- elvui
return nameplate.unitFrame.Health return nameplate.UnitFrame.Health
elseif nameplate.unitFramePlater and nameplate.unitFramePlater.healthBar then elseif nameplate.unitFramePlater and nameplate.unitFramePlater.healthBar then
-- plater -- plater
return nameplate.unitFramePlater.healthBar return nameplate.unitFramePlater.healthBar