Thread Tools Display Modes
07-26-06, 10:14 PM   #1
Lodran
A Defias Bandit
Join Date: Feb 2006
Posts: 2
How to determine why a spellcast failed

I'm working on a plugin that implements a blacklist functionality when casting spells.

Unfortunately, right now it blacklists units for reasons that it shouldn't - for example, when you are stunned, silenced or out of mana.

So, when my SPELLCAST_FAILED event is called, how can I determine why the spell failed, so that I can avoid blacklisting players for stupid reasons?
  Reply With Quote
07-28-06, 11:00 AM   #2
Esamynn
Featured Artist
Premium Member
Featured
Join Date: Jan 2005
Posts: 395
You could monitor the UI_ERROR_MESSAGE event, which is the event responsible for displaying the red error messages in the middle of your screen. You can then check what the error message was and filter based on that.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to determine why a spellcast failed


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