Formula

CommonFun.calcBuff_3750

function CommonFun.calcBuff_3750(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Skilllv = srcUser:GetLernedSkillLevel(103740_:RESILIENT)
  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