app/cards/menagerie/ways/way_of_the_rat.js
Function play
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
play(game, player_cards, card_player) {
let eligible_cards = _.filter(player_cards.hand, function(card) {
return _.includes(_.words(card.types), 'treasure')
})
if (_.size(eligible_cards) > 0) {