View Single Post
05-01-10, 04:26 AM   #8
sigg
Featured Artist
 
sigg's Avatar
Featured
Join Date: Aug 2008
Posts: 1,251
also your code should be :

Code:
local ismaxhealthpower = false;
local pt = unit:PowerType();
if unit:Health() == unit:MaxHealth() then
	if unit:Power() == unit:MaxPower() and (pt == 0 or pt == 2 or pt == 3) then
		ismaxhealthpower = true;
	elseif  unit:Power() >= 1 and (pt == 1 or pt == 6) then
		ismaxhealthpower = true;
	end
end

BTW add in SVN
  Reply With Quote