"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DastardlyDrust = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.DastardlyDrust = {
    cardIds: ["BG32_234", "BG32_234_G"],
    onCardAddedToHand: (minion, input) => {
        if ((0, utils_1.hasCorrectTribe)(input.addedCard, input.hero, reference_data_1.Race.PIRATE, input.gameState.anomalies, input.gameState.allCards)) {
            const mult = minion.cardId === "BG32_234_G" ? 2 : 1;
            const targets = input.board;
            for (const target of targets) {
                if ((0, utils_1.isGolden)(target.cardId, input.gameState.allCards)) {
                    (0, stats_1.modifyStats)(target, minion, 6 * mult, 6 * mult, input.board, input.hero, input.gameState);
                }
                else {
                    (0, stats_1.modifyStats)(target, minion, 2 * mult, 2 * mult, input.board, input.hero, input.gameState);
                }
            }
        }
    },
};
//# sourceMappingURL=dastardly-drust.js.map