"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PapaMrrglton = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.PapaMrrglton = {
    cardIds: ["BG35_141", "BG35_141_G"],
    battlecry: (minion, input) => {
        var _a;
        const mult = minion.cardId === "BG35_141_G" ? 2 : 1;
        const mrrg = (_a = input.hero.globalInfo.MrrgltonsPlayedThisGame) !== null && _a !== void 0 ? _a : 0;
        const hp = 3 * mult + mrrg;
        for (const e of input.board) {
            if ((0, utils_1.hasCorrectTribe)(e, input.hero, reference_data_1.Race.MURLOC, input.gameState.anomalies, input.gameState.allCards)) {
                (0, stats_1.modifyStats)(e, minion, 0, hp, input.board, input.hero, input.gameState);
            }
        }
        input.hero.globalInfo.MrrgltonsPlayedThisGame = mrrg + 1;
        return true;
    },
};
//# sourceMappingURL=papa-mrrglton.js.map