

def use(self, player, game):
    super().use(player, game)
    for i in range(0, 2):
        demon_card = game.random_draw(game.current_player.deck.cards, (lambda c: ((not demon_card.drawn) and c.is_minion() and (c.minion_type == MINION_TYPE.DEMON))))
        if demon_card:
            demon_card.drawn = True
            player.deck.left -= 1
            if (len(player.hand) < 10):
                player.hand.append(demon_card)
                demon_card.player = player
                self.trigger('card_drawn', demon_card)
            else:
                player.trigger('card_destroyed', demon_card)
        elif (len(player.hand) < 10):
            player.hand.append(hearthbreaker.cards.minions.warlock.WorthlessImp())
            player.hand[(- 1)].player = player
            self.trigger('card_drawn', hearthbreaker.cards.minions.warlock.WorthlessImp())

dataset/ETHPy150Open danielyule/hearthbreaker/hearthbreaker/cards/spells/warlock.py SenseDemons.use/VarMisuse@58/64 `c`->`demon_card`