"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BrazenBuccaneer = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
const baseAttackBuff = 3;
const baseHealthBuff = 3;
exports.BrazenBuccaneer = {
    cardIds: ["BG35_701", "BG35_701_G"],
    endOfTurn: (minion, input) => {
        var _a;
        const mult = minion.cardId === "BG35_701_G" ? 2 : 1;
        const pirate = input.board.find((e) => (0, utils_1.hasCorrectTribe)(e, input.hero, reference_data_1.Race.PIRATE, input.gameState.anomalies, input.gameState.allCards));
        if (!pirate) {
            return true;
        }
        const cardsPlayed = (_a = input.hero.globalInfo.CardsPlayedThisTurn) !== null && _a !== void 0 ? _a : 0;
        const repeats = 1 + cardsPlayed;
        for (let i = 0; i < repeats; i++) {
            (0, stats_1.modifyStats)(pirate, minion, baseAttackBuff * mult, baseHealthBuff * mult, input.board, input.hero, input.gameState);
        }
        return true;
    },
};
//# sourceMappingURL=brazen-buccaneer.js.map