{"size": 748, "ext": "js", "max_stars_repo_path": "server/game/cards/11.1-TSC/ShadowPriestess.js", "max_stars_repo_name": "Bullgator351/throneteki", "max_stars_repo_stars_event_min_datetime": "2016-11-06T15:14:28.000Z", "max_stars_repo_stars_event_max_datetime": "2018-05-14T21:12:36.000Z", "max_issues_repo_path": "server/game/cards/11.1-TSC/ShadowPriestess.js", "max_issues_repo_name": "Bullgator351/throneteki", "max_issues_repo_issues_event_min_datetime": "2016-11-07T01:07:55.000Z", "max_issues_repo_issues_event_max_datetime": "2018-05-16T09:12:57.000Z", "max_forks_repo_path": "server/game/cards/11.1-TSC/ShadowPriestess.js", "max_forks_repo_name": "Bullgator351/throneteki", "max_forks_repo_forks_event_min_datetime": "2016-11-06T15:14:38.000Z", "max_forks_repo_forks_event_max_datetime": "2018-04-23T10:34:19.000Z"}
{"max_stars_count": 49, "max_issues_count": 831, "max_forks_count": 54, "avg_line_length": 31.1666666667, "max_line_length": 136, "alphanum_fraction": 0.5320855615}
const DrawCard = require('../../drawcard');

class ShadowPriestess extends DrawCard {
    setupCardAbilities() {
        this.reaction({
            when: {
                onCardOutOfShadows: event => event.card === this
            },
            target: {
                cardCondition: card => card.location === 'play area' && card.getType() === 'character' && card.attachments.length === 0,
                gameAction: 'kneel'
            },
            handler: context => {
                this.controller.kneelCard(context.target);
                this.game.addMessage('{0} uses {1} to kneel {2}', this.controller, this, context.target);
            }
        });
    }
}

ShadowPriestess.code = '11008';

module.exports = ShadowPriestess;
