Formula

CommonFun.calcBuff_8520

function CommonFun.calcBuff_8520(srcUser, targetUser, a, b, c, d, lv, damage)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = srcUser:GetProperty("MaxHp")
  local MaxSp = srcUser:GetProperty("MaxSp")
  local mapid, maptype = srcUser:GetMapInfo()
  local A = MaxHp * math.min(math.floor(MaxSp / 1000) / 100, 0.15)
  return A
end