Geigerkind
Authorized
- Joined
- Aug 9, 2014
- Location
- Germany
Hey,
I currently try to get the amount of the players buffs but for some reason it always returns 0 although I have 2 buffs on me.
I think I'm doing something terribly wrong^^
I currently try to get the amount of the players buffs but for some reason it always returns 0 although I have 2 buffs on me.
Code:
function VCB_getNumBuffs()
local i = 1;
while true do
local name, rank, icon, charges, timemax, timeleft = UnitBuff("player", i);
if not icon then break end
i = i + 1;
end
return i - 1;
end
I think I'm doing something terribly wrong^^