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

class MiwakuKabe extends DrawCard {
    setupCardAbilities() {
        this.interrupt({
            title: 'Shuffle this into deck',
            when: {
                onBreakProvince: event => event.province.controller === this.controller && event.province.location === this.location
            },
            handler: () => {
                this.game.addMessage('{0} uses {1} to shuffle itself back into the dynasty deck', this.controller, this);
                this.controller.replaceDynastyCard(this.location);
                this.controller.moveCard(this, 'dynasty deck');
                this.game.queueSimpleStep(() => this.controller.shuffleDynastyDeck());
            }
        });
    }
}

MiwakuKabe.id = 'miwaku-kabe';

module.exports = MiwakuKabe;
<commit_msg>Miwaku Kabe fix<commit_after>const DrawCard = require('../../drawcard.js');

class MiwakuKabe extends DrawCard {
    setupCardAbilities() {
        this.interrupt({
            title: 'Shuffle this into deck',
            when: {
                onBreakProvince: event => event.province.controller === this.controller && event.province.location === this.location
            },
            handler: () => {
                this.game.addMessage('{0} uses {1} to shuffle itself back into the dynasty deck', this.controller, this);
                const location = this.location;
                this.controller.moveCard(this, 'dynasty deck');
                this.game.queueSimpleStep(() => this.controller.shuffleDynastyDeck());
                this.game.queueSimpleStep(() => this.controller.replaceDynastyCard(location));
            }
        });
    }
}

MiwakuKabe.id = 'miwaku-kabe';

module.exports = MiwakuKabe;

{'fraction_non_alphanumeric': 0.13068181818181818, 'fraction_numerical': 0.0022727272727272726, 'mean_word_length': 2.2193784277879343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '7379509', 'n_tokens_mistral': 497, 'n_tokens_neox': 481, 'n_words': 96}