Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-15-11, 07:09 AM   #1
daylesan
A Fallenroot Satyr
Join Date: Feb 2011
Posts: 22
UNIT_SPELLCAST_INTERRUPTIBLE erratic behaviour

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?

Last edited by daylesan : 03-15-11 at 10:52 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » UNIT_SPELLCAST_INTERRUPTIBLE erratic behaviour


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off