"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Poultron = void 0;
const divine_shield_1 = require("../../../keywords/divine-shield");
const attack_1 = require("../../../simulation/attack");
exports.Poultron = {
    cardIds: ["BG33_371", "BG33_371_G"],
    baseAvengeValue: (cardId) => 5,
    avenge: (minion, input) => {
        if (minion.health <= 0 || minion.definitelyDead) {
            return;
        }
        const mult = minion.cardId === "BG33_371_G" ? 2 : 1;
        const previousHasAttacked = minion.hasAttacked;
        const previousWindfury = minion.windfury;
        const totalAttacks = mult;
        for (let i = 0; i < totalAttacks; i++) {
            minion.windfury = false;
            (0, divine_shield_1.updateDivineShield)(minion, input.board, input.hero, input.otherHero, true, input.gameState);
            minion.attackImmediately = true;
            (0, attack_1.simulateAttack)(input.board, input.hero, input.otherBoard, input.otherHero, input.gameState);
            minion.hasAttacked = previousHasAttacked;
            minion.attackImmediately = false;
            minion.windfury = previousWindfury;
        }
    },
};
//# sourceMappingURL=poultron.js.map