Body, Mind & Soul — API Reference
    Preparing search index...
    applyDamage: {
        allowedTargetScopes: string[];
        configPartial: string;
        execute: (outcome: any, context: any) => Promise<void>;
        resolveConfigs: (cfg: any) => { allowedTypes: any; key: string }[] | null;
        resultFields: { fields: string[]; subKeyField: string };
    }

    Apply damage to the target actor (or owner if no target). Config: { type, amount, layer }

    Result fields:

    • original: Damage amount before resistance application
    • actual: Damage amount after resistance application
    • rollTotal: Total value of the roll that computed the damage amount (null if no formula)
    • cardValue: Sum of drawn card face values in the damage formula (null if no cards drawn)
    • cardName: Name of the drawn card when exactly one card drawn; null otherwise or for multi-card draws

    Type Declaration

    • allowedTargetScopes: string[]
    • configPartial: string
    • execute: (outcome: any, context: any) => Promise<void>
    • resolveConfigs: (cfg: any) => { allowedTypes: any; key: string }[] | null
    • resultFields: { fields: string[]; subKeyField: string }