function onStatsChange(cid, attacker, type, combat, value)
for _, pid in ipairs(getCreatureSummons(cid)) do
if(pid and isPlayer(cid) and combat ~= COMBAT_HEALING or type == STATSCHANGE_HEALTHLOSS) then
value = 30
if(value >= getCreatureHealth(pid)) then
doSendMagicEffect(getThingPosition(pid), CONST_ME_STUN)
return false
end
end
end
return true
end