unitframes: only match for exact unitnames

This commit is contained in:
shagu
2018-11-02 16:34:45 +01:00
parent 4de1690809
commit 2b19b117bf
+1 -1
View File
@@ -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")