"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StellarFreebooter = void 0;
const utils_1 = require("../../../services/utils");
const stats_1 = require("../../../simulation/stats");
exports.StellarFreebooter = {
    cardIds: ["BG29_866", "BG29_866_G"],
    deathrattleSpawn: (minion, input) => {
        const loops = minion.cardId === "BG29_866_G" ? 2 : 1;
        for (let i = 0; i < loops; i++) {
            const target = (0, utils_1.pickRandomAlive)(input.boardWithDeadEntity);
            if (!!target) {
                (0, stats_1.modifyStats)(target, minion, 0, minion.attack, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.gameState);
            }
        }
        return [];
    },
};
//# sourceMappingURL=stellar-freebooter.js.map