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