"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LurkingLeviathan = void 0;
const reference_data_1 = require("@firestone-hs/reference-data");
const stats_1 = require("../../../simulation/stats");
const utils_1 = require("../../../utils");
exports.LurkingLeviathan = {
    cardIds: ["BG35_602", "BG35_602_G"],
    onOtherSpawned: (minion, input) => {
        var _a;
        if (input.spawned.entityId === minion.entityId) {
            return;
        }
        if (!(0, utils_1.hasCorrectTribe)(input.spawned, input.hero, reference_data_1.Race.BEAST, input.gameState.anomalies, input.gameState.allCards)) {
            return;
        }
        const inc = minion.cardId === "BG35_602_G" ? 4 : 2;
        const atkBonus = (_a = minion.scriptDataNum1) !== null && _a !== void 0 ? _a : inc;
        (0, stats_1.modifyStats)(input.spawned, minion, atkBonus, 0, input.board, input.hero, input.gameState);
        minion.scriptDataNum1 = atkBonus + inc;
    },
};
//# sourceMappingURL=lurking-leviathan.js.map