diff --git a/app/queries/optional_item_query.rb b/app/queries/optional_item_query.rb index a12b62b93..a5f7dea78 100644 --- a/app/queries/optional_item_query.rb +++ b/app/queries/optional_item_query.rb @@ -19,7 +19,8 @@ class OptionalItemQuery < ApplicationQuery end if hacks.present? - items = ItemBank.where(container_id: hacks.where(status: 1).pluck(:id), container_type: "Hack").or(ItemBank.where(id: items.pluck(:id))) + items = ItemBank.where(container_id: hacks.where(status: 1).pluck(:id), container_type: "Hack") + .or(ItemBank.where(id: items.pluck(:id)).where("item_type != '6'")) end public = source.present? ? source.to_i : 1