Formula

CommonFun.calcBuff_8280

function CommonFun.calcBuff_8280(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 order1 = srcUser:getEquipLv(5)
  local A = 0
  if (Ring1 == a or Ring1 == b) and 0 <= RefineLv1 and RefineLv1 < 12 then
    A = 0
  elseif (Ring1 == a or Ring1 == b) and 12 <= RefineLv1 and RefineLv1 < 15 then
    A = c
  elseif (Ring1 == a or Ring1 == b) and 15 <= RefineLv1 then
    A = c + d
  end
  return A
end