Skip to content

Commit b3f879d

Browse files
committed
UF: frameglow UnitIsUnit error
1 parent f99955c commit b3f879d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ElvUI/Game/Shared/Modules/UnitFrames/Elements/FrameGlow.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function UF:FrameGlow_CheckUnit(frame, element, setting, color, glowEnabled, fra
294294

295295
local unit = frame.unit or (frame.isForced and 'player')
296296
local source = E:NotSecretValue(unit) and unit
297-
local target = UnitIsUnit(source, strsub(setting, 0, -5))
297+
local target = source and UnitIsUnit(source, strsub(setting, 0, -5))
298298
if E:NotSecretValue(target) and target and (glowEnabled and not frameDisabled) then
299299
if color then
300300
UF:FrameGlow_SetGlowColor(element, source, setting)

0 commit comments

Comments
 (0)