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

class IuchiDaiyu extends DrawCard {
    setupCardAbilities(ability) {
        this.action({
            title: '+1 military for each faceup province',
            condition: () => this.game.isDuringConflict(),
            target: {
                gameAction: ability.actions.cardLastingEffect(context => ({
                    effect: ability.effects.modifyMilitarySkill(context.player.getNumberOfOpponentsFaceupProvinces())
                }))
            },
            effect: 'give {0} +1{1} for each faceup non-stronghold province their opponent controls (+{2}{1})',
            effectArgs: context => ['military', context.player.getNumberOfOpponentsFaceupProvinces()]
        });
    }
}

IuchiDaiyu.id = 'iuchi-daiyu';

module.exports = IuchiDaiyu;

const DrawCard = require('../../drawcard.js');
const AbilityDsl = require('../../abilitydsl');

class IuchiDaiyu extends DrawCard {
    setupCardAbilities() {
        this.action({
            title: '+1 military for each faceup province',
            condition: () => this.game.isDuringConflict(),
            target: {
                gameAction: AbilityDsl.actions.cardLastingEffect(context => ({
                    effect: AbilityDsl.effects.modifyMilitarySkill(context.player.getNumberOfOpponentsFaceupProvinces())
                }))
            },
            effect: 'give {0} +1{1} for each faceup non-stronghold province their opponent controls (+{2}{1})',
            effectArgs: context => ['military', context.player.getNumberOfOpponentsFaceupProvinces()]
        });
    }
}

IuchiDaiyu.id = 'iuchi-daiyu';

module.exports = IuchiDaiyu;

Update Iuchi Daiyu to use AbilityDsl
Update Iuchi Daiyu to use AbilityDsl
