Thread Tools Display Modes
10-26-08, 03:10 PM   #1
acapela
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 241
Magic School detection?

it doesn't look like there is any "easy" way to identify spell school information at runtime based on a SpellID or any similar "combat log" data. nor does UnitCastingInfo() or GetSpellInfo() seem to supply anything that could serve as a handle on this.

does anyone know of any (hopefully current/maintained) 3rd-party addon that tries to provide an API for this sort of thing?

i would like to be able to select colors (and/or allow the user to specify colors) for various elements of my addon's UI in a fashion categorized by "spell school" (i.e. shadow, physical, arcane, fire, "rune" if applicable, etc).

thanks in advance.
  Reply With Quote
10-26-08, 03:56 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
One of the args in the combat log is spell school. http://www.wowwiki.com/API_COMBAT_LO...T#Spell_School
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-29-08, 08:09 PM   #3
acapela
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 241
Originally Posted by Seerah View Post
One of the args in the combat log is spell school. http://www.wowwiki.com/API_COMBAT_LO...T#Spell_School
yeah, i failed to be sufficiently specific in my question, due to my own ignorance.

i am looking at dumps of COMBAT_LOG_UNFILTERED events right now, from my mage. looks like the spell school is only listed in SPELL_DAMAGE combat events. not in SPELL_CAST_START combat events, nor in UNIT_SPELLCAST_SENT log events.

so, coloring a cast bar, or coloring some sort of cast warning text of some sort, for events with a "cast time", based on spell school looks like it could be tricky.

i suppose i could track SPELL_DAMAGE (and other such combat log DAMAGE events) and map SpellID to school over time, by sniffing the combat log. save the mapping in Saved Variables, and even let the user edit the mapping, specify custom colors for specific events, all that jazz.

anyway, thanks for the pointer. i will cogitate on this some more. at least it appears to be doable in some form, even if somewhat indirectly.

Last edited by acapela : 10-29-08 at 09:28 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Magic School detection?


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