switch discard from cards to resource type