If you're running TFS 1.0 or higher try this:
doCreatureAddHealth(cid, health)
In your case I suppose it would be something similar to this
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
if not attacker then
return...