1644x CrossRP/CrossRP.lua:316: attempt to call global 'UnitBuff' (a nil value)
[string "@CrossRP/CrossRP.lua"]:316: in function `UnitHasElixir'
[string "@CrossRP/CrossRP.lua"]:340: in function `TouchTest'
[string "@CrossRP/CrossRP.lua"]:356: in function `OnMouseoverUnit'
[string "@CrossRP/CrossRP.lua"]:256: in function <CrossRP/CrossRP.lua:255>
[string "=[C]"]: ?
[string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ons/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@AdvancedInterfaceOptions/libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `Fire'
[string "@AskMrRobot/Libs/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <AskMrRobot/Libs/AceEvent-3.0/AceEvent-3.0.lua:119>
Locals:
unit = "mouseover"
ELIXIR_OF_TONGUES = 2336
buff_expiry = nil
(for index) = 1
(for limit) = 40
(for step) = 1
i = 1
(*temporary) = nil
(*temporary) = "mouseover"
(*temporary) = 1
(*temporary) = "attempt to call global 'UnitBuff' (a nil value)"
It looks like the section should be switched to use C_TooltipInfo.GetUnitBuffByAuraInstanceID instead of looping through the unit buffs.
It looks like the section should be switched to use
C_TooltipInfo.GetUnitBuffByAuraInstanceID
instead of looping through the unit buffs.