[GH-ISSUE #6731] [Issue]: A bestiary creature's Parry loses its reaction and never answers a hit #3772

Closed
opened 2026-10-21 06:07:03 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6731

Originally assigned to: @kolacheee on GitHub.

Summary

A creature that a ruleset fight takes from a bestiary catalog loses its reaction and self keys, so a creature's own Parry (added in #6729) never answers a hit. It turns up as an ordinary action on the creature's turn instead, aimed at an enemy.

Expected behavior

A bestiary creature whose action carries reaction: { on: "hit" } and self: true keeps both in the fight: the action is off its turn menu, and a blow that hits it opens the window where it may parry, exactly as a hand-written stat block with the same action does.

Actual behavior

creatureAction in packages/shared/src/features/ruleset-combat/creatures.ts copies a bestiary action into a stat block key by key and has no line for reaction or self. The fight then sees a plain action on the reaction budget that targets one enemy, so:

  • no hit window opens for the creature, and
  • on its own turn it is offered as an action that puts the parry bonus on an enemy.

The C5g lane (game-ruleset-combat-hit) only builds its parrying creature as a stat block by hand, so it never went through this copy.

Steps to reproduce

  1. Build a fight with the 5e reference (docs/development/ruleset-5e-2014.example.json) and name its Toll Sergeant from the bestiary: { creature: { catalogId: "creatures", entryId: "toll-sergeant" } }.
  2. Read the sergeant's Parry action: reaction is missing and its targets are { side: "enemy", count: 1 }.
  3. Hit the sergeant with an attack that beats its AC by 1: the damage lands and no window asks it to parry.

Environment

  • Marinara Engine version: staging at 4629eb913 (Capability API 1.46)
  • Install type: source
  • OS + version: Fedora 44
  • Browser or app shell: not browser-specific (shared combat code)

Logs, screenshots, or video

Found while proving the 5e package release against staging: the bestiary knight's Parry came back as {"id":"parry","label":"Parry","budget":"reaction","targets":{"side":"enemy","count":1},"kind":"block"} with no reaction.

Additional context

The 5e package release (https://github.com/Pasta-Devs/Marinara-Agents/issues/1092) carries six SRD creature Parries (bandit captain, erinyes, gladiator, knight, marilith, noble) and needs this fix to play them.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6731 Originally assigned to: @kolacheee on GitHub. ## Summary A creature that a ruleset fight takes from a bestiary catalog loses its `reaction` and `self` keys, so a creature's own Parry (added in #6729) never answers a hit. It turns up as an ordinary action on the creature's turn instead, aimed at an enemy. ## Expected behavior A bestiary creature whose action carries `reaction: { on: "hit" }` and `self: true` keeps both in the fight: the action is off its turn menu, and a blow that hits it opens the window where it may parry, exactly as a hand-written stat block with the same action does. ## Actual behavior `creatureAction` in `packages/shared/src/features/ruleset-combat/creatures.ts` copies a bestiary action into a stat block key by key and has no line for `reaction` or `self`. The fight then sees a plain action on the reaction budget that targets one enemy, so: - no hit window opens for the creature, and - on its own turn it is offered as an action that puts the parry bonus on an enemy. The C5g lane (`game-ruleset-combat-hit`) only builds its parrying creature as a stat block by hand, so it never went through this copy. ## Steps to reproduce 1. Build a fight with the 5e reference (`docs/development/ruleset-5e-2014.example.json`) and name its Toll Sergeant from the bestiary: `{ creature: { catalogId: "creatures", entryId: "toll-sergeant" } }`. 2. Read the sergeant's Parry action: `reaction` is missing and its targets are `{ side: "enemy", count: 1 }`. 3. Hit the sergeant with an attack that beats its AC by 1: the damage lands and no window asks it to parry. ## Environment - Marinara Engine version: `staging` at 4629eb913 (Capability API 1.46) - Install type: source - OS + version: Fedora 44 - Browser or app shell: not browser-specific (shared combat code) ## Logs, screenshots, or video Found while proving the 5e package release against staging: the bestiary knight's Parry came back as `{"id":"parry","label":"Parry","budget":"reaction","targets":{"side":"enemy","count":1},"kind":"block"}` with no `reaction`. ## Additional context The 5e package release (https://github.com/Pasta-Devs/Marinara-Agents/issues/1092) carries six SRD creature Parries (bandit captain, erinyes, gladiator, knight, marilith, noble) and needs this fix to play them. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:07:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3772
No description provided.