View Single Post
10-26-08, 06:31 AM   #161
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Balkeep View Post
So there is no way of forcing player, target, focus to update onthefly?

Also who can tell me why this function doesnt work? it supposed to determine if unit has certain buff or not...
Code:
local function Buffed(unit, auraName)
	local i = 1
	while false do
		if i == 73 then break end
		if auraName == select(1,UnitAura(unit, i)) then	return true end
		i = i +1
		end
	end
pfff... i feel that i need to start from basics cuz my usual research method is too slow for programming (figuring out how similar things work and adapting them for myself).
Why make another function?
Code:
if(UnitAura('player', 'Innervate')) then