I want to implement UNIT_SPELLCAST_INTERRUPTIBLE and UNIT_SPELLCAST_NOT_INTERRUPTIBLE into my addon.
The issue I'm having is that these events never trigger when a cast becomes interruptible/uninterruptible. Instead they will occasionally trigger off other things.
The code involved is extremely simple:
Code:
function ezInterrupt:UpdateCombatLogParsing()
self:RegisterEvent("UNIT_SPELLCAST_NOT_INTERRUPTIBLE")
self:RegisterEvent("UNIT_SPELLCAST_INTERRUPTIBLE")
end
Code:
function ezInterrupt:UNIT_SPELLCAST_INTERRUPTIBLE(event, unitID)
print(event.." for "..unitID)
end
Code:
function ezInterrupt:UNIT_SPELLCAST_NOT_INTERRUPTIBLE(event, unitID)
print(event.." for "..unitID)
end
I'm stumped. Obviously it works in other addons but I can't figure out what they do differently to have these events working correctly. My addon has several events registered and used in the same way as in the above example and everything works fine. What makes UNIT_SPELLCAST_NOT_INTERRUPTIBLE etc unique?