<commit_before>const DrawCard = require('../../drawcard');

class ShadowPriestess extends DrawCard {
    setupCardAbilities() {
        this.reaction({
            when: {
                onCardOutOfShadows: event => event.card === this
            },
            target: {
                cardCondition: card => card.getType() === 'character' && card.attachments.length === 0,
                gameAction: 'kneel'
            },
            handler: context => {
                this.controller.kneelCard(context.target);<commit_msg>Shadow Priestess: only allow to kneel in-play characters (#2303)<commit_after>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);
{'fraction_non_alphanumeric': 0.13130434782608696, 'fraction_numerical': 0.0052173913043478265, 'mean_word_length': 1.8919597989949748, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4546134', 'n_tokens_mistral': 308, 'n_tokens_neox': 292, 'n_words': 62}