TellMeWhen

TellMeWhen

24M Downloads

GetMouseFocus error

f4ndor opened this issue · 1 comments

commented

WoW Version

Retail

TellMeWhen Version

11.0.3

Describe the bug

Getting the following lua error when hovering players/npcs

1102x [string "local focusedUnit = GetMouseFocus()..."]:1: attempt to call global 'GetMouseFocus' (a nil value)
[string "local focusedUnit = GetMouseFocus()

if not focusedUnit then return false end

local frameName = focusedUnit:GetName()

return frameName ~= 'WorldFrame'"]:1: in function `LF_000001E1A7881EC0'
[string "Condition_EXISTS_REACT_ISPLAYER_LUA"]:6: in function `CheckFunction'
[string "@TellMeWhen/Components/Core/Conditions/ConditionObject.lua"]:266: in function `Check'
[string "@TellMeWhen/Components/Core/Icon.lua"]:770: in function <TellMeWhen/Components/Core/Icon.lua:741>
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "safecall Dispatcher[1]"]:9: in function <[string "safecall Dispatcher[1]"]:5>
[string "=(tail call)"]: ?
[string "@TellMeWhen/TellMeWhen.lua"]:2675: in function <TellMeWhen/TellMeWhen.lua:2637>

Locals:
(*temporary) = nil
(*temporary) = "attempt to call global 'GetMouseFocus' (a nil value)"

Export Strings

N/A
commented

This is coming from your own custom Lua condition. GetMouseFocus() can be replaced with GetMouseFoci()[1]