#Does WA have a global function to fetch spellschool by spellId or spellname?

22 messages · Page 1 of 1 (latest)

nimble badger
#

Trying to color a progress bar by spellschool color that triggers on a debuff aura. unfortunately it doesn't have aura_env.state.spellSchool like it does have with some other type of triggers

#

because Details:GetSpellSchoolColor(aura_env.state.spellSchool) wouldve worked

orchid mural
#

Details caches the spell school of every spell that goes through the combat log in order for that to work. WA has no use for that data so it doesn't.

That being said, I don't know why you couldn't still just use the Details helper function. The only issue I could see is if you're trying to use it on an ability you haven't seen in the combat log yet that session.

nimble badger
#

Details:GetSpellSchool() just always returns 1, no matter how long i test on a dummy for or how many times i recheck if the name is correct

#

already asked on their discord but no solutions

orchid mural
#

It looks like WA does have the spell school in the state of a combat log trigger

#

But that appears to be it

#

Also have you tried the spell ID instead of the name?

nimble badger
#

Yeah i tried

#

but their api accepts both

orchid mural
#

Sure, I was just attempting to remove a potential point of user error by having details convert the spell ID to a name is all lol

nimble badger
#

I appreciate the help

orchid mural
#

Unfortunately I'm not at a computer so I can't do any testing myself to help any further

nimble badger
#

i guess going the CLUE route is the only one left

#

id rather avoid tbh

nimble badger
#

ill try

#

that does give spellschool but breaks the progress bar by not showing up

#

i guess i could build my own database through that combat log and then just have the progress bar show up slightly later

round bridge
#

what kind of buffs? and why is the buffs spellschool important? usually people care about the debuff types

nimble badger
#

it is about debuffs, i need the spellschool because i want to color the progress bar by spellschool color