Maybe write:
Code:

temp = you.health + my.units;
you.health = min(temp,100);



Dunno if this helps, but its worth a try, isn't it?