"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PowderKeg = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const utils_1 = require("../../../services/utils");
const utils_2 = require("../../../utils");
exports.PowderKeg = {
    cardIds: ["BG35_MagicItem_714"],
    startOfCombat: (trinket, input) => {
        const pirates = input.playerBoard.filter((e) => (0, utils_2.hasCorrectTribe)(e, input.playerEntity, reference_data_1.Race.PIRATE, input.gameState.anomalies, input.gameState.allCards));
        const targets = (0, utils_1.pickMultipleRandomAlive)(pirates, 2);
        for (const target of targets) {
            target.enchantments.push({
                cardId: "BG35_700",
                originEntityId: trinket.entityId,
                repeats: 1,
                timing: input.gameState.sharedState.currentEntityId++,
            });
        }
        return { hasTriggered: true, shouldRecomputeCurrentAttacker: false };
    },
};
//# sourceMappingURL=powder-keg.js.map