Formula

CommonFun.calcBuff_4580

function CommonFun.calcBuff_4580(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Skilllv = srcUser:GetLernedSkillLevel(105210_:SPRING_S_BLESSING)
  local QualityValue_a = 0
  local QualityValue_b = 0
  QualityValue_a = math.ceil(Skilllv / 2)
  QualityValue_b = math.floor(Skilllv / 2)
  if a == 1 then
    return QualityValue_a
  elseif b == 1 then
    return QualityValue_b
  else
    return 0
  end
end