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

class MadKingAerys extends DrawCard {
    setupCardAbilities(ability) {
        this.persistentEffect({
            condition: () => this.opponentControlsKingslayer(),
            match: this,
            effect: ability.effects.cannotBeKilled()
        });

        this.action({
            title: 'Kill character',
            phase: 'dominance',
            cost: ability.costs.kneelSelf(),
            target: {
                cardCondition: card => card.isMatch({ location: 'play area', trait: ['Lord', 'Lady'] }),<commit_msg>Fix Mad King Aerys "cannot be killed" condition (#2997)<commit_after>const DrawCard = require('../../drawcard');

class MadKingAerys extends DrawCard {
    setupCardAbilities(ability) {
        this.persistentEffect({
            condition: () => !this.opponentControlsKingslayer(),
            match: this,
            effect: ability.effects.cannotBeKilled()
        });

        this.action({
            title: 'Kill character',
            phase: 'dominance',
            cost: ability.costs.kneelSelf(),
            target: {
                cardCondition: card => card.isMatch({ location: 'play area', trait: ['Lord', 'Lady'] }),
{'fraction_non_alphanumeric': 0.13669650122050447, 'fraction_numerical': 0.0032546786004882017, 'mean_word_length': 2.2453825857519787, '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': '7381118', 'n_tokens_mistral': 341, 'n_tokens_neox': 322, 'n_words': 75}