{"size": 492, "ext": "js", "max_stars_repo_path": "server/game/cards/01-SKCore/BastardsBoys.js", "max_stars_repo_name": "adkateki/throneteki-sk", "max_stars_repo_stars_event_min_datetime": "2020-09-27T10:31:18.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-27T10:31:18.000Z", "max_issues_repo_path": "server/game/cards/01-SKCore/BastardsBoys.js", "max_issues_repo_name": "adkateki/throneteki-sk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/game/cards/01-SKCore/BastardsBoys.js", "max_forks_repo_name": "adkateki/throneteki-sk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.8947368421, "max_line_length": 110, "alphanum_fraction": 0.5447154472}
const DrawCard = require('../../drawcard.js');

class BastardBoys extends DrawCard {
    setupCardAbilities(ability) {
        this.forcedReaction({
            when: {
                afterChallenge: event => event.challenge.winner === this.controller && this.isParticipating()
            },
            handler: context => {
                context.player.sacrificeCard(this);
            }
        });
    }
}

BastardBoys.code = '50074';

module.exports = BastardBoys;
