Inheritance
Lvl: 5 Passive

When the Dragon Fist dies, he will automatically transfer his remaining Dragon Balls to the teammate with the lowest HP within 8 meters, and recover 25% Max HP for that teammate.

Lvl: 4 Passive
• When the Dragon Fist dies, he will automatically transfer his remaining Dragon Balls to the teammate with the lowest HP within 8 meters, and recover 20% Max HP for that teammate.
Lvl: 3 Passive
• When the Dragon Fist dies, he will automatically transfer his remaining Dragon Balls to the teammate with the lowest HP within 8 meters, and recover 15% Max HP for that teammate.
Lvl: 2 Passive
• When the Dragon Fist dies, he will automatically transfer his remaining Dragon Balls to the teammate with the lowest HP within 8 meters, and recover 10% Max HP for that teammate.
Lvl: 1 Passive
• When the Dragon Fist dies, he will automatically transfer his remaining Dragon Balls to the teammate with the lowest HP within 8 meters, and recover 5% Max HP for that teammate.

Self 6050

function CommonFun.calcBuff_6050(srcUser, targetUser, a, b, c, d, lv, damage)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = targetUser:GetProperty("MaxHp")
  local MaxSp = targetUser:GetProperty("MaxSp")
  local skilllv_1 = srcUser:GetLernedSkillLevel(3313_LIGHTBRINGER:INHERITANCE)
  local skilllv_2 = srcUser:GetLernedSkillLevel(3320_LIGHTBRINGER:INHERITANCE_MAGIC)
  local A = MaxHp * skilllv_1 * 0.05 * a + MaxSp * skilllv_2 * 0.05 * b
  return A
end

Self

{
  "id": 100500,
  "BuffDesc": "Increase Atk, ignore part of Def",
  "BuffIcon": "skillbuff_301001",
  "BuffName": "Spirit Bomb",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 1,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "Atk": {
      "a": 10,
      "type": 780
    },
    "MAtk": {
      "a": 0,
      "b": 0,
      "c": 143112,
      "type": 5010
    },
    "type": "AttrChange",
    "MaxHp": {
      "a": 0,
      "b": 0,
      "c": 143113,
      "type": 5010
    },
    "MaxHpPer": {
      "a": 3301,
      "b": 0.002,
      "c": 0,
      "type": 8
    },
    "SkillDam": {
      "a": 3321,
      "b": 0.002,
      "c": 0,
      "type": 8
    },
    "WaterAtk": {
      "a": 3321,
      "b": 0.002,
      "c": 0,
      "type": 8
    },
    "IgnoreDef": {
      "a": 0.02,
      "type": 790
    },
    "IgnoreMDef": {
      "type": 1980
    },
    "extra_attr": {
      "Atk": {
        "a": 0,
        "b": 0,
        "c": 143111,
        "type": 5010
      }
    }
  },
  "BuffStateID": 100500
}

Self

{
  "id": 127210,
  "BuffName": "Inheritance",
  "BuffRate": {
    "Odds": 100
  },
  "Condition": {
    "type": "OnNearDeath",
    "need_dead": 1
  },
  "BuffEffect": {
    "id": [
      127211,
      127212,
      127213
    ],
    "type": "AddBuff"
  }
}

Self

{
  "id": 127211,
  "BuffName": "Dragon Ball (Effect)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "ChangeBuffStateBuff",
    "change": [
      127180
    ]
  }
}

Self

{
  "id": 127212,
  "BuffName": "Inheritance (Spirit Bomb)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "id": 100500,
    "type": "BuffTransfer",
    "maxlayer": 15
  }
}

Self

{
  "id": 127213,
  "BuffName": "Inheritance (HP Restore Magic)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "Hp": {
      "a": 1,
      "b": 0,
      "type": 6050
    },
    "Sp": {
      "a": 0,
      "b": 1,
      "type": 6050
    },
    "type": "HSPChange",
    "calc_heal": 1
  },
  "BuffStateID": 127210
}

Formula

{
  "id": 3313005,
  "Buff": {
    "self": [
      127210
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 3313000,
      "params": [
        25
      ]
    }
  ],
  "Icon": "skill_3313001",
  "Level": 5,
  "DescId": "##171985",
  "NameZh": "##159324",
  "ItemCost": [
    {
      "id": 12903,
      "count": 1020
    }
  ],
  "Pvp_buff": {
    "self": [
      127210
    ]
  },
  "ExtraMaxLevel": 0
}