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

class CorpseLake extends DrawCard {
    setupCardAbilities(ability) {
        this.reaction({
            when: {
                onCardsDiscarded: event =>
                    event.originalLocation === 'draw deck'
                    && event.card.getType() === 'character'
                    && event.card.controller !== this.controller
            },
            limit: ability.limit.perRound(3),
            handler: () => {
                this.modifyPower(1);
                this.game.addMessage('{0} gains 1 power on {1}', this.controller, this);
            }
        });
    }
}

CorpseLake.code = '09028';

module.exports = CorpseLake;

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

class CorpseLake extends DrawCard {
    setupCardAbilities(ability) {
        this.reaction({
            when: {
                onCardDiscarded: event =>
                    event.originalLocation === 'draw deck'
                    && event.card.getType() === 'character'
                    && event.card.controller !== this.controller
            },
            limit: ability.limit.perRound(3),
            handler: () => {
                this.modifyPower(1);
                this.game.addMessage('{0} gains 1 power on {1}', this.controller, this);
            }
        });
    }
}

CorpseLake.code = '09028';

module.exports = CorpseLake;

Fix event for Corpse Lake (#1557)