Formula

CommonFun.calcBuff_5670

function CommonFun.calcBuff_5670(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Ring1 = srcUser:GetEquipedID(5_ACCESSORY)
  local RefineLv1 = srcUser:GetEquipedRefineLv(5_ACCESSORY)
  local Ring2 = srcUser:GetEquipedID(6_ACCESSORY)
  local RefineLv2 = srcUser:GetEquipedRefineLv(6_ACCESSORY)
  local order1 = srcUser:getEquipLv(5)
  local order2 = srcUser:getEquipLv(6)
  local a = 0
  local b = 0
  local c = 1
  if (Ring1 == 44003_STAUNCH_RING_STAUNCH_RING or Ring1 == 144003_STAUNCH_RING_1_STAUNCH_RING_1) and 10 <= RefineLv1 and 8 <= order1 then
    a = 100
  end
  if (Ring2 == 44003_STAUNCH_RING_STAUNCH_RING or Ring2 == 144003_STAUNCH_RING_1_STAUNCH_RING_1) and 10 <= RefineLv2 and 8 <= order2 then
    b = 100
  end
  if (Ring1 == 44003_STAUNCH_RING_STAUNCH_RING or Ring1 == 144003_STAUNCH_RING_1_STAUNCH_RING_1) and (Ring2 == 44003_STAUNCH_RING_STAUNCH_RING or Ring2 == 144003_STAUNCH_RING_1_STAUNCH_RING_1) and 8 <= order1 and 8 <= order2 then
    c = 2
  end
  local A = (a + b) / c
  return A
end