"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimewarpedJungleKing = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.TimewarpedJungleKing = {
    cardIds: ["BG34_PreMadeChamp_004", "BG34_PreMadeChamp_004_G"],
    afterOtherSpawned: (minion, input) => {
        var _a, _b;
        if (!(0, utils_1.hasCorrectTribe)(input.spawned, input.hero, reference_data_1.Race.BEAST, input.gameState.anomalies, input.gameState.allCards)) {
            return;
        }
        const mult = minion.cardId === "BG34_PreMadeChamp_004_G" ? 2 : 1;
        const atkBuff = (_a = minion.scriptDataNum1) !== null && _a !== void 0 ? _a : 3 * mult;
        const healthBuff = (_b = minion.scriptDataNum2) !== null && _b !== void 0 ? _b : 2 * mult;
        (0, stats_1.modifyStats)(input.spawned, minion, atkBuff, healthBuff, input.board, input.hero, input.gameState);
    },
    afterTavernSpellCast: (entity, input) => {
        var _a, _b;
        const mult = entity.cardId === "BG34_PreMadeChamp_004_G" ? 2 : 1;
        entity.scriptDataNum1 = (_a = entity.scriptDataNum1) !== null && _a !== void 0 ? _a : 0;
        entity.scriptDataNum1 += 3 * mult;
        entity.scriptDataNum2 = (_b = entity.scriptDataNum2) !== null && _b !== void 0 ? _b : 0;
        entity.scriptDataNum2 += 2 * mult;
    },
};
//# sourceMappingURL=timewarped-jungle-king.js.map