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

class HidaAmoro extends DrawCard {
    setupCardAbilities(ability) {
        this.forcedReaction({
            title: 'Sacrifice a character',
            when: {
                onConflictPass: () => true
            },
            limit: ability.limit.perPhase(Infinity),
            effect: 'force {1} to sacrifice a character',
            effectArgs: context => context.event.conflict.attackingPlayer,
            gameAction: ability.actions.sacrifice(context => ({
                promptForSelect: {
                    player: context.event.conflict.attackingPlayer,
                    activePromptTitle: 'Choose a character to sacrifice',
                    cardType: 'character',
                    message: '{0} sacrifices {1} to {2}',
                    messageArgs: card => [context.player.opponent, card, context.source]
                }
            }))<commit_msg>Hida Amoro bugfix<commit_after>const DrawCard = require('../../drawcard.js');

class HidaAmoro extends DrawCard {
    setupCardAbilities(ability) {
        this.forcedReaction({
            title: 'Sacrifice a character',
            when: {
                onConflictPass: () => true
            },
            limit: ability.limit.perPhase(Infinity),
            effect: 'force {1} to sacrifice a character',
            effectArgs: context => context.event.conflict.attackingPlayer,
            gameAction: ability.actions.sacrifice(context => ({
                promptForSelect: {
                    player: context.event.conflict.attackingPlayer,
                    activePromptTitle: 'Choose a character to sacrifice',
                    cardType: 'character',
                    cardCondtion: card => card.controller === context.event.conflict.attackingPlayer,
                    message: '{0} sacrifices {1} to {2}',
                    messageArgs: card => [context.player.opponent, card, context.source]
                }
            }))
{'fraction_non_alphanumeric': 0.10760760760760761, 'fraction_numerical': 0.004004004004004004, 'mean_word_length': 1.7802503477051461, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '4109476', 'n_tokens_mistral': 505, 'n_tokens_neox': 478, 'n_words': 110}