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

class IuchiWayfinder extends DrawCard {
    setupCardAbilities() {
        this.reaction({
            title: 'Reveal a province',
            when: {
                onCardEntersPlay: event => event.card === this
            },<commit_msg>Iuchi Wayfinder bugfix (#1849)<commit_after>const DrawCard = require('../../drawcard.js');

class IuchiWayfinder extends DrawCard {
    setupCardAbilities() {
        this.reaction({
            title: 'Reveal a province',
            when: {
                onCardEntersPlay: (event, context) => event.card === context.source && 
                                                      this.game.allCards.any(card => card.isProvince && card.controller === context.player.opponent)
            },
{'fraction_non_alphanumeric': 0.12672521957340024, 'fraction_numerical': 0.005018820577164366, 'mean_word_length': 1.9338235294117647, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4218971', 'n_tokens_mistral': 218, 'n_tokens_neox': 203, 'n_words': 44}