So according to wowprogramming.com
name, rank, icon, count, dispelType, duration, expires, caster, isStealable, nameplateShowPersonal, spellID, canApplyAura, isBossDebuff, _, nameplateShowAll, timeMod, value1, value2, value3 = UnitBuff("unit", "name" [, "rank" [, "filter"]])
this is the code structure to get the buff information.
Now when I do something like this (for example on my monk):
Code:
function()
local name, rank, icon, count, dispelType, duration, expires, caster, isStealable, nameplateShowPersonal, spellID, canApplyAura, isBossDebuff, _, nameplateShowAll, timeMod, value1, value2, value3 = UnitBuff("player", "Hit Combo")
return value1;
end
I would expect to get some results, but apparently value1, value2 and value3 are all nil.
Values such as name and spellID seem to work. I tried getting duration, it just stays fixed at 10 seconds (even though the buff duration is ticking down).
I know that you could extract buff information like this, I even have some auras that are working with it still, and those that are, well are working... but when I try to make a new one, it just won't let me.
I tried the similar thing with shaman's Flame Shock, script was:
Code:
function()
local name, rank, icon, count, dispelType, duration, expires, caster, isStealable, nameplateShowPersonal, spellID, canApplyAura, isBossDebuff, _, nameplateShowAll, timeMod, value1, value2, value3 = UnitBuff("target", "Flame Shock")
return value1;
end
All I kept getting was a "0" in this case. For warlocks Unstable Affliction I've managed to get a number, but the number was incorrect and inconsistent, let's say about 40% lower then what the spell was actually ticking for.
Any ideas?