local heal = { --- heailing formula edit it as you want
getPlayerMagLevel(cid) * 5 + getPlayerLevel(cid) * 2 , -- min
getPlayerMagLevel(cid) * 6 + getPlayerLevel(cid) * 3 -- max
}
if #getCreatureSummons(cid) < 1 then
doPlayerSendCancel(cid,"You don't have any summons.")
return false
end
for _,pid in ipairs(getCreatureSummons(cid)) do
doCreatureAddHealth(pid,math.random(heal[1],heal[2]))
doSendMagicEffect(getThingPos(pid),12)
end
doSendMagicEffect(getThingPos(cid),12)
return true
end