mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
unitframes: only match for exact unitnames
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user