elseif item.quality == ItemQuality.Rare then -- mThreshhold is used for setting the point where an item reaches minimum quality mThreshhold = 5 mTotal = 0 if item.flags.Identified == true then -- Circlets if item.baseItem.type == ItemType.Circlet then -- +2 Class skills or +2 specific skill tab if checkModStatType(item, StatType.ClassSkillsBonus) >= 2 or checkModStatType(item, StatType.SkillTabBonus) >= 2 then if checkModStatType(item, StatType.FasterCastRate) == 20 then mTotal = mTotal + 2 end if checkResists(item, "1111", 0) > 10 then mTotal = mTotal + 2 end temp = checkModStatType(item, StatType.Sockets) if temp == 1 then mTotal = mTotal + 1 elseif temp == 2 then mTotal = mTotal + 2 end if mTotal >= mThreshhold then return false end end end end return true