app/cards/menagerie/scrap.js
Function trash_card
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static trash_card(game, player_cards, selected_cards, card_player) {
let number_of_options = CostCalculator.calculate(game, selected_cards[0])
number_of_options = Math.min(6, number_of_options)
let card_trasher = new CardTrasher(game, player_cards, 'hand', selected_cards[0])