Formula

CommonFun.calcBuff_7793

function CommonFun.calcBuff_7793(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = d
  local RefineLv = srcUser:GetEquipedRefineLv(1)
  if 6 <= RefineLv and RefineLv < 12 then
    A = d + a
  elseif 12 <= RefineLv and RefineLv < 15 then
    A = d + a + b
  elseif 15 <= RefineLv then
    A = d + a + b + c
  end
  return A
end