source: Shadow Madness NAME_END -1 ATK_END -1 DEF_END 4 COST_END -1 DUR_END Spell TYPE_END Priest PLAYER_CLS_END NIL RACE_END Rare RARITY_END Gain control of an enemy minion with 3 or less Attack until end of turn.
target: class ShadowMadness(SpellCard):§    def __init__(self):§        super().__init__("Shadow Madness", 4, CHARACTER_CLASS.PRIEST, CARD_RARITY.RARE, target_func=hearthbreaker.targeting.find_enemy_minion_spell_target, filter_func=lambda target: target.calculate_attack() <= 3 and target.spell_targetable())§§    def use(self, player, game):§§        super().use(player, game)§§        minion = self.target.copy(player)§        minion.active = True§        minion.exhausted = False§§        self.target.remove_from_board()§        minion.add_to_board(len(player.minions))§§        minion.add_buff(BuffUntil(Stolen(), TurnEnded()))§§    def can_use(self, player, game):§        return super().can_use(player, game) and len(player.minions) < 7§