From 2b19b117bf77c3b870910379efa155026b16cf13 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 2 Nov 2018 16:34:45 +0100 Subject: [PATCH] unitframes: only match for exact unitnames --- api/unitframes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 00c8d74d..6aedfae9 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -693,7 +693,7 @@ function pfUI.uf:EnableScripts() f:SetScript("OnClick", function () if not this.label and this.unitname then local player = UnitIsUnit("target", "player") - TargetByName(this.unitname) + TargetByName(this.unitname, true) if strlower(UnitName("target")) ~= strlower(this.unitname) then if player then TargetUnit("player")