Swallow Balls
Lvl: 5 Passive

Every time a Dragon Ball is consumed, restore HP (lost HP *number of consumed Dragon Balls *2%)

Lvl: 4 Passive
• Every time a Dragon Ball is consumed, restore HP (lost HP *number of consumed Dragon Balls *1.6%)
Lvl: 3 Passive
• Every time a Dragon Ball is consumed, restore HP (lost HP *number of consumed Dragon Balls *1.2%)
Lvl: 2 Passive
• Every time a Dragon Ball is consumed, restore HP (lost HP *number of consumed Dragon Balls *0.8%)
Lvl: 1 Passive
• Every time a Dragon Ball is consumed, restore HP (lost HP *number of consumed Dragon Balls *0.4%)

Self 6040

function CommonFun.calcBuff_6040(srcUser, targetUser, a, b, c, d, lv, damage)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = srcUser:GetProperty("MaxHp")
  local Hp = srcUser:GetProperty("Hp")
  local skilllv_1 = srcUser:GetLernedSkillLevel(3310_LIGHTBRINGER:SWALLOW_BALLS)
  local A = (MaxHp - Hp) * damage * (0.004 * skilllv_1)
  return A
end

Self

{
  "id": 127200,
  "BuffName": "Swallow Balls",
  "BuffRate": {
    "Odds": 100
  },
  "Condition": {
    "id": [
      100500
    ],
    "type": "OnCostBuff"
  },
  "BuffEffect": {
    "Hp": {
      "type": 6040
    },
    "type": "HSPChange",
    "calc_heal": 1
  }
}

Formula

{
  "id": 3310005,
  "Buff": {
    "self": [
      127200
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 3310000,
      "params": [
        2
      ]
    }
  ],
  "Icon": "skill_3310001",
  "Level": 5,
  "DescId": "##171380",
  "NameZh": "##159635",
  "ItemCost": [
    {
      "id": 12903,
      "count": 1020
    }
  ],
  "Pvp_buff": {
    "self": [
      127200
    ]
  },
  "ExtraMaxLevel": 0
}