"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AutoAssemblerEnchantment = void 0;
const deathrattle_spawns_1 = require("../../../simulation/deathrattle-spawns");
exports.AutoAssemblerEnchantment = {
    cardIds: [
        "BG32_172e",
        "BG32_172_Ge",
    ],
    deathrattleSpawnEnchantmentEffect: (enchantment, minion, input) => {
        var _a, _b, _c, _d;
        const cardIdToSpawn = enchantment.cardId === "BG32_172_Ge"
            ? "BG_TTN_401_G"
            : "BG_TTN_401";
        const attackPerMinion = enchantment.cardId === "BG32_172_Ge"
            ? (_b = (_a = input.gameState.allCards.getCard("BG32_172_G")) === null || _a === void 0 ? void 0 : _a.attack) !== null && _b !== void 0 ? _b : 0
            : (_d = (_c = input.gameState.allCards.getCard("BG32_172")) === null || _c === void 0 ? void 0 : _c.attack) !== null && _d !== void 0 ? _d : 0;
        const loops = Math.floor((enchantment.tagScriptDataNum1 || attackPerMinion) / attackPerMinion);
        return (0, deathrattle_spawns_1.simplifiedSpawnEntities)(cardIdToSpawn, loops, input);
    },
};
//# sourceMappingURL=auto-assembler-enchantment.js.map