mouseover: fix logic for target cast

This commit is contained in:
shagu
2016-12-21 19:51:53 +01:00
parent 4f6f2fce88
commit 0003ef3761
+2 -2
View File
@@ -9,10 +9,10 @@ pfUI:RegisterModule("mouseover", function ()
local frame = GetMouseFocus()
if frame.label and frame.id then
unit = frame.label .. frame.id
elseif GetCVar("autoSelfCast") == "1" then
unit = "player"
elseif UnitExists("target") then
unit = "target"
elseif GetCVar("autoSelfCast") == "1" then
unit = "player"
else
return
end