attack_modifiers
Calculate attack roll advantage or disadvantage based on combatant conditions, distance, and exhaustion, handling special rules like Prone's 5-foot flip and Invisible target exceptions.
Instructions
Compose an attack roll's Advantage/Disadvantage from both combatants' conditions and distance (Prone's 5-foot flip, Blinded, Restrained, Paralyzed, Stunned, Invisible with the seen exception, the Grappled attacker rule). Exhaustion is returned as a flat modifier, never Advantage. Genuinely ambiguous rules text (e.g. a seen Invisible target) returns cannot-adjudicate with the ambiguous sentence cited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| attacker | No | ||
| distance_ft | Yes |