local _,xaid= ObjectLib:getAreaData(10000001) local _,playerlist=Area:getAreaPlayers(xaid) if #playerlist>0 then for i,pid in ipairs(playerlist) do local _,maxhp=Player:getAttr(pid,1) local _,nowhp=Player:getAttr(pid,2) --Buff:clearAllBadBuff(pid) if maxhp ~= nowhp then local addsm=math.floor(maxhp/5) Actor:addHP(pid,addsm) end end end