"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Photobomber = void 0;
const utils_1 = require("../../../services/utils");
const attack_1 = require("../../../simulation/attack");
exports.Photobomber = {
    cardIds: ["BG34_780", "BG34_780_G"],
    deathrattleSpawn: (minion, input) => {
        const loops = minion.cardId === "BG34_780_G" ? 2 : 1;
        const damage = minion.scriptDataNum1 || 2 + input.boardWithDeadEntityHero.globalInfo.TavernSpellsCastThisGame;
        for (let i = 0; i < loops; i++) {
            const target = (0, utils_1.pickRandomHighestHealth)(input.otherBoard);
            if (!!target) {
                (0, attack_1.dealDamageToMinion)(target, input.otherBoard, input.otherBoardHero, minion, damage, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.gameState);
            }
        }
        return [];
    },
};
//# sourceMappingURL=photobomber.js.map