"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimewarpedCaretaker = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const deathrattle_spawns_1 = require("../../../simulation/deathrattle-spawns");
const utils_1 = require("../../../utils");
exports.TimewarpedCaretaker = {
    cardIds: ["BG34_Giant_618", "BG34_Giant_618_G"],
    deathrattleSpawn: (minion, input) => {
        const mult = minion.cardId === "BG34_Giant_618_G" ? 2 : 1;
        const spawns = (0, deathrattle_spawns_1.simplifiedSpawnEntities)("BG_ICC_026t", 4 * mult, input);
        spawns.forEach((e) => {
            e.onCanceledSummon = () => {
                input.boardWithDeadEntityHero.globalInfo.UndeadAttackBonus += 1;
                (0, utils_1.addStatsToBoard)(minion, input.boardWithDeadEntity, input.boardWithDeadEntityHero, 1, 0, input.gameState, reference_data_1.Race[reference_data_1.Race.UNDEAD], false);
            };
        });
        return spawns;
    },
};
//# sourceMappingURL=timewarped-caretaker.js.map