"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TwilightHatchling = void 0;
const deathrattle_spawns_1 = require("../../../simulation/deathrattle-spawns");
const spawns_1 = require("../../../simulation/spawns");
exports.TwilightHatchling = {
    cardIds: ["BG34_630", "BG34_630_G"],
    deathrattleSpawn: (minion, input) => {
        const mult = minion.cardId === "BG34_630_G" ? 2 : 1;
        const spawns = (0, deathrattle_spawns_1.simplifiedSpawnEntities)("BG34_630t", mult, input);
        spawns.forEach((e) => {
            e.attackImmediately = true;
        });
        const indexFromRight = input.deadEntityIndexFromRight;
        const spawned = (0, spawns_1.performEntitySpawns)(spawns, input.boardWithDeadEntity, input.boardWithDeadEntityHero, minion, indexFromRight, input.otherBoard, input.otherBoardHero, input.gameState, true);
        spawned.forEach((e) => {
            e.hasAttacked = undefined;
        });
        return [];
    },
};
//# sourceMappingURL=twilight-hatchling.js.map