"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MurkysFish = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const utils_1 = require("../../../services/utils");
const stats_1 = require("../../../simulation/stats");
const utils_2 = require("../../../utils");
exports.MurkysFish = {
    cardIds: ["BG33_898"],
    castTavernSpell: (spellCardId, input) => {
        const murlocs = input.board.filter((e) => (0, utils_2.hasCorrectTribe)(e, input.hero, reference_data_1.Race.MURLOC, input.gameState.anomalies, input.gameState.allCards));
        const target = (0, utils_1.pickRandom)(murlocs);
        if (!!target) {
            const { attack, health } = (0, utils_2.withTavernSpellStatBuff)(input.hero, 1, 1, input.gameState.allCards, input.spellCardId);
            const loops = 1 + murlocs.length;
            for (let i = 0; i < loops; i++) {
                (0, stats_1.modifyStats)(target, input.source, attack, health, input.board, input.hero, input.gameState);
            }
        }
    },
};
//# sourceMappingURL=murkys-fish.js.map