To complete Droid Swarm, you must also have X Battle Cards in your discard pile.
Search your deck for up to X Droid unit cards, show them to your opponent, and put them into your hand. Shuffle your deck. Droid Swarm also does X damage divided between your opponent's units in any arena.