"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SeafloorRecruiter = void 0;
const cast_tavern_spell_1 = require("../../../mechanics/cast-tavern-spell");
exports.SeafloorRecruiter = {
    cardIds: ["BG34_925", "BG34_925_G"],
    rally: (minion, input) => {
        const mult = minion.cardId === "BG34_925_G" ? 2 : 1;
        const idx = input.attackingBoard.indexOf(minion);
        const right = idx >= 0 ? input.attackingBoard[idx + 1] : null;
        if (right) {
            for (let i = 0; i < mult; i++) {
                (0, cast_tavern_spell_1.castTavernSpell)("BG28_518", {
                    spellCardId: "BG28_518",
                    source: input.attackingHero,
                    target: right,
                    board: input.attackingBoard,
                    hero: input.attackingHero,
                    otherBoard: input.defendingBoard,
                    otherHero: input.defendingHero,
                    gameState: input.gameState,
                });
            }
        }
        return { dmgDoneByAttacker: 0, dmgDoneByDefender: 0 };
    },
};
//# sourceMappingURL=seafloor-recruiter.js.map