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

class MargaeryTyrell extends DrawCard {
    setupCardAbilities() {
        this.action({
            title: 'Kneel this character to give another +3 STR',
            method: 'kneel'
        });
    }

    kneel(player) {
        if(this.controller !== player || this.kneeled || player.phase !== 'challenge') {
            return false;
        }

        this.game.promptForSelect(player, {
            activePromptTitle: 'Select a character',
            waitingPromptTitle: 'Waiting for opponent to use ' + this.name,
            cardCondition: card => card.location === 'play area' && card.getType() === 'character',
            onSelect: (p, card) => this.onCardSelected(p, card)
        });

        return true;
    }

    onCardSelected(player, card) {
        this.game.addMessage('{0} kneels {1} to give {2} +3 STR until the end of the phase', player, this, card);
        this.controller.kneelCard(this);
        this.untilEndOfChallenge(ability => ({<commit_msg>Margaery Tyrell should boost until end of phase. (#225)<commit_after>const DrawCard = require('../../../drawcard.js');

class MargaeryTyrell extends DrawCard {
    setupCardAbilities() {
        this.action({
            title: 'Kneel this character to give another +3 STR',
            method: 'kneel'
        });
    }

    kneel(player) {
        if(this.controller !== player || this.kneeled || player.phase !== 'challenge') {
            return false;
        }

        this.game.promptForSelect(player, {
            activePromptTitle: 'Select a character',
            waitingPromptTitle: 'Waiting for opponent to use ' + this.name,
            cardCondition: card => card.location === 'play area' && card.getType() === 'character',
            onSelect: (p, card) => this.onCardSelected(p, card)
        });

        return true;
    }

    onCardSelected(player, card) {
        this.game.addMessage('{0} kneels {1} to give {2} +3 STR until the end of the phase', player, this, card);
        this.controller.kneelCard(this);
        this.untilEndOfPhase(ability => ({
{'fraction_non_alphanumeric': 0.1369216241737488, 'fraction_numerical': 0.006137865911237016, 'mean_word_length': 2.3317610062893084, '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': '4434610', 'n_tokens_mistral': 622, 'n_tokens_neox': 608, 'n_words': 158}