Neuron

Neuron

98.2k Downloads

[classic] attempt to call global 'UnitChannelInfo' (a nil value)

crosenbe opened this issue ยท 2 comments

commented

Wasn't able to identify when this happened ...

ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Neuron\Objects\STATUSBTN.lua line 882:
   attempt to call global 'UnitChannelInfo' (a nil value)
Debug:
   Neuron\Objects\STATUSBTN.lua:882: ?()
   ...las\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:119:
      ...las\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:119
   [C]: ?
   ...las\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:29:
      ...las\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:25
   ...las\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:64: Fire()
   ...LibThreatClassic2\Libs\AceEvent-3.0\AceEvent-3.0.lua:120:
      ...LibThreatClassic2\Libs\AceEvent-3.0\AceEvent-3.0.lua:119
commented

if not Neuron.isWoWClassic then

		if not Neuron.isWoWClassic then
			self:RegisterEvent("UNIT_SPELLCAST_INTERRUPTIBLE", "CastBar_OnEvent")
			self:RegisterEvent("UNIT_SPELLCAST_NOT_INTERRUPTIBLE", "CastBar_OnEvent")
		end

Based on this line i assume it's not possible to fetch this information in WoW Classic.

local name, text, texture, startTime, endTime, isTradeSkill, notInterruptible = UnitChannelInfo(unit)

commented

Please test this latest code in MASTER and let me know if that fixes the issue