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

class Treachery extends DrawCard {
    setupCardAbilities() {
        this.interrupt({
            canCancel: true,
            when: {
                onCardAbilityInitiated: event => {
                    if((event.source.getType() !== 'character' && event.source.getType() !== 'location' && event.source.getType() !== 'attachment') ||
                            event.player === this.controller) {
                        return false;
                    }

                    if(!this.controller.anyCardsInPlay(card => card.isUnique() && card.isFaction('lannister'))) {<commit_msg>Require character for Treachery. (#1025)<commit_after>const DrawCard = require('../../../drawcard.js');

class Treachery extends DrawCard {
    setupCardAbilities() {
        this.interrupt({
            canCancel: true,
            when: {
                onCardAbilityInitiated: event => {
                    if((event.source.getType() !== 'character' && event.source.getType() !== 'location' && event.source.getType() !== 'attachment') ||
                            event.player === this.controller) {
                        return false;
                    }

                    if(!this.controller.anyCardsInPlay(card => card.isUnique() && card.isFaction('lannister') && card.getType() === 'character')) {
{'fraction_non_alphanumeric': 0.15485756026296568, 'fraction_numerical': 0.0029218407596785976, 'mean_word_length': 1.8721174004192873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3211929', 'n_tokens_mistral': 354, 'n_tokens_neox': 344, 'n_words': 60}