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

class StandYourGround extends DrawCard {
    setupCardAbilities(ability) {
        this.wouldInterrupt({
            title: 'Prevent a character from leaving play',
            when: {
                onCardLeavesPlay: (event, context) => event.card.controller === context.player && event.card.isHonored
            },
            effect: 'prevent {0} from leaving play',<commit_msg>bugfix for Stand Your Ground (#2078)<commit_after>const DrawCard = require('../../drawcard.js');

class StandYourGround extends DrawCard {
    setupCardAbilities(ability) {
        this.wouldInterrupt({
            title: 'Prevent a character from leaving play',
            when: {
                onCardLeavesPlay: (event, context) => event.card.controller === context.player && event.card.isHonored
            },
            effect: 'prevent {1} from leaving play',
            effectArgs: context => context.event.card,
{'fraction_non_alphanumeric': 0.11855670103092783, 'fraction_numerical': 0.006185567010309278, 'mean_word_length': 2.5181159420289854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6805852', 'n_tokens_mistral': 260, 'n_tokens_neox': 249, 'n_words': 65}