unitframes: reduce focus-frame click logic

This commit is contained in:
shagu
2019-05-09 20:49:50 +02:00
parent a30720c895
commit c486c180f0
-8
View File
@@ -706,15 +706,7 @@ end
function pfUI.uf.OnClick()
if not this.label and this.unitname then
local player = UnitIsUnit("target", "player")
TargetByName(this.unitname, true)
if strlower(UnitName("target")) ~= strlower(this.unitname) then
if player then
TargetUnit("player")
else
TargetLastTarget()
end
end
else
pfUI.uf:ClickAction(arg1)
end