Formula

CommonFun.calcBuff_6456

function CommonFun.calcBuff_6456(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local RefineLv = srcUser:GetEquipExtractionRefineLv(2)
  local A = d
  if 5 <= RefineLv and RefineLv < 10 then
    A = d + a
  elseif 10 <= RefineLv and RefineLv < 15 then
    A = d + a + b
  elseif 15 <= RefineLv then
    A = d + a + b + c
  end
  return A
end