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