Posted by aragonix on Thu, 14 Feb 2013 20:27:37
First of all: Thanks for this forum. I dont know what I would do without it!
Now to my question: I have an array with important Spells/Buffs, that I keep track of. My problem is that I would need to know the spellschool of these buffs, however I only have the spellname as info.
The code looks like this at the moment:
for _,value in pairs(enemy_buffs) do if UnitAura(strlower(targetFocus), value) then local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff(strlower(targetFocus), value) local remaining = expirationTime - GetTime() PvPMonster_add_static_msg(name, name.."|c00FF0000 Is Up|r", nil, remaining) end end
AS you can see I get all kind of infos from the UnitBuff API, but I cannot find a way to get the Spellschool....
p.s. I am writing this addon for WoW 3.3.5
Posted by jnwhiteh on Sun, 17 Feb 2013 21:01:16
Sorry, but I won't help you with addons for private servers.