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