"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EternalPortrait = exports.eternalKnightHealth = exports.eternalKnightAttack = void 0;
const reborn_1 = require("../../../keywords/reborn");
const taunt_1 = require("../../../keywords/taunt");
exports.eternalKnightAttack = 3;
exports.eternalKnightHealth = 1;
exports.EternalPortrait = {
    startOfCombat: (trinket, input) => {
        const candidates = input.playerBoard
            .filter((e) => e.cardId === "BG25_008" || e.cardId === "BG25_008_G")
            .filter((e) => !e.taunt || !e.reborn);
        if (candidates === null || candidates === void 0 ? void 0 : candidates.length) {
            candidates.forEach((knight) => {
                (0, taunt_1.updateTaunt)(knight, true, input.playerBoard, input.playerEntity, input.opponentEntity, input.gameState);
                (0, reborn_1.updateReborn)(knight, true, input.playerBoard, input.playerEntity, input.opponentEntity, input.gameState);
                input.gameState.spectator.registerPowerTarget(input.playerEntity, knight, input.playerBoard, null, null);
            });
            return true;
        }
    },
};
//# sourceMappingURL=eternal-portrait.js.map