"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EntityTakeDmgFilter = void 0;
const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
const shouldFire_1 = require("../../shouldFire");
const CustomCallback_1 = require("../private/CustomCallback");
class EntityTakeDmgFilter extends CustomCallback_1.CustomCallback {
    constructor() {
        super();
        this.callbacksUsed = [
            // 11
            [isaac_typescript_definitions_1.ModCallback.ENTITY_TAKE_DMG, this.entityTakeDmg],
        ];
    }
    shouldFire = shouldFire_1.shouldFireEntity;
    // ModCallback.ENTITY_TAKE_DMG (11)
    entityTakeDmg = (entity, amount, damageFlags, source, countdownFrames) => this.fire(entity, amount, damageFlags, source, countdownFrames);
}
exports.EntityTakeDmgFilter = EntityTakeDmgFilter;
