"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimewarpedClefthoof = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const attack_1 = require("../../../simulation/attack");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.TimewarpedClefthoof = {
    cardIds: ["BG34_PreMadeChamp_090", "BG34_PreMadeChamp_090_G"],
    endOfTurn: (minion, input) => {
        const mult = minion.cardId === "BG34_PreMadeChamp_090_G" ? 2 : 1;
        const candidates = input.board.filter((e) => (0, utils_1.hasCorrectTribe)(e, input.hero, reference_data_1.Race.BEAST, input.gameState.anomalies, input.gameState.allCards));
        for (let i = 0; i < 3 * mult; i++) {
            for (const candidate of candidates) {
                (0, stats_1.modifyStats)(candidate, minion, 1, 2, input.board, input.hero, input.gameState);
                (0, attack_1.dealDamageToMinion)(candidate, input.board, input.hero, minion, 1, input.otherBoard, input.otherHero, input.gameState);
            }
        }
    },
};
//# sourceMappingURL=timewarped-clefthoof.js.map