"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IrateRooster = void 0;
const attack_1 = require("../../../simulation/attack");
const stats_1 = require("../../../simulation/stats");
exports.IrateRooster = {
    startOfCombat: (minion, input) => {
        const loops = minion.cardId === "BG29_990_G" ? 2 : 1;
        for (let i = 0; i < loops; i++) {
            const neighbours = (0, attack_1.getNeighbours)(input.playerBoard, minion);
            for (const neighbour of neighbours) {
                input.gameState.spectator.registerPowerTarget(minion, neighbour, input.playerBoard, input.playerEntity, input.opponentEntity);
                (0, attack_1.dealDamageToMinion)(neighbour, input.playerBoard, input.playerEntity, minion, 1, input.opponentBoard, input.opponentEntity, input.gameState);
                (0, stats_1.modifyStats)(neighbour, minion, 4, 0, input.playerBoard, input.playerEntity, input.gameState);
            }
        }
        return true;
    },
};
//# sourceMappingURL=irate-rooster.js.map