mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 02:30:50 +00:00
mouseover: fix logic for target cast
This commit is contained in:
@@ -9,10 +9,10 @@ pfUI:RegisterModule("mouseover", function ()
|
|||||||
local frame = GetMouseFocus()
|
local frame = GetMouseFocus()
|
||||||
if frame.label and frame.id then
|
if frame.label and frame.id then
|
||||||
unit = frame.label .. frame.id
|
unit = frame.label .. frame.id
|
||||||
elseif GetCVar("autoSelfCast") == "1" then
|
|
||||||
unit = "player"
|
|
||||||
elseif UnitExists("target") then
|
elseif UnitExists("target") then
|
||||||
unit = "target"
|
unit = "target"
|
||||||
|
elseif GetCVar("autoSelfCast") == "1" then
|
||||||
|
unit = "player"
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user