"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ForestRover = void 0;
const deathrattle_spawns_1 = require("../../../simulation/deathrattle-spawns");
const stats_1 = require("../../../simulation/stats");
exports.ForestRover = {
    cardIds: ["BG31_801", "BG31_801_G"],
    deathrattleSpawn: (deadEntity, input) => {
        const numberOfSpawns = deadEntity.cardId === "BG31_801_G" ? 2 : 1;
        return (0, deathrattle_spawns_1.simplifiedSpawnEntities)("BG28_603t", numberOfSpawns, input);
    },
    battlecry: (minion, input) => {
        const mult = minion.cardId === "BG31_801_G" ? 2 : 1;
        input.hero.globalInfo.BeetleAttackBuff = input.hero.globalInfo.BeetleAttackBuff + 1 * mult;
        input.hero.globalInfo.BeetleHealthBuff = input.hero.globalInfo.BeetleHealthBuff + 1 * mult;
        input.board
            .filter((e) => ["BG28_603t", "BG28_603t_G"].includes(e.cardId))
            .forEach((e) => {
            (0, stats_1.modifyStats)(e, minion, 1 * mult, 1 * mult, input.board, input.hero, input.gameState);
        });
        return true;
    },
};
//# sourceMappingURL=forest-rover.js.map