"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolvePendingEffects = void 0;
const resolvePendingEffects = (attackingBoard, attackingBoardHero, defendingBoard, defendingBoardHero, gameState) => {
    for (const entity of attackingBoard) {
        if (entity.onResolve) {
            for (const resolve of entity.onResolve) {
                resolve();
            }
            entity.onResolve = [];
        }
    }
    for (const entity of defendingBoard) {
        if (entity.onResolve) {
            for (const resolve of entity.onResolve) {
                resolve();
            }
            entity.onResolve = [];
        }
    }
};
exports.resolvePendingEffects = resolvePendingEffects;
//# sourceMappingURL=pending-effects.js.map