• The reason an attacker may not initiate an automated attack — the first ATTACK_BLOCKING_STATUSES entry it has — or null when unimpaired. Pure and unit-tested; consumed by SohlCombatantLogic.startAutomatedAttack.

    Parameters

    • statuses: Iterable<string>

      The attacker actor's active status-effect ids.

    • isDefeated: boolean

      Whether the attacker combatant is Foundry-DEFEATED.

    Returns string | null

    The blocking status id, or null.