Formula

CommonFun.calcBuff_5931

function CommonFun.calcBuff_5931(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local GemValue = srcUser:GetGemValue(153141_WHEN_LIFE_CONCENTRIC_IS_TRIGGERED_RESTORE_PERCENTAGE_OF_YOUR_LOST_HP)
  local MaxHp = targetUser:GetProperty("MaxHp")
  local Hp = targetUser:GetProperty("Hp")
  local A = (MaxHp - Hp) * GemValue / 100000
  if A <= 0 then
    A = 0
  end
  return A
end