mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6733] [MERGED] fix(game): a bestiary creature keeps its reaction and what it does to itself #7302
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7302
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6733
Author: @kolacheee
Created: 9/26/2026
Status: ✅ Merged
Merged: 9/26/2026
Merged by: @kolacheee
Base:
staging← Head:fix/bestiary-creature-reactions📝 Commits (1)
bd6464efix(game): a bestiary creature keeps its reaction and what it does to itself📊 Changes
3 files changed (+47 additions, -0 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/shared/src/features/ruleset-combat/creatures.ts(+9 -0)📝
scripts/regressions/game-ruleset-combat-hit.regression.ts(+36 -0)📄 Description
Linked issue
Closes #6731
Why this change
#6729 let a creature's own action be a reaction that lands on itself, which is how a Parry is written. That works for a stat block written by hand, but a creature a fight takes from a bestiary catalog is copied into a stat block key by key, and that copy had no line for
reactionorself. So every bestiary Parry was lost: no window opened when a blow hit the creature, and on its own turn the Parry was offered as an ordinary action aimed at an enemy. The #6729 lane only built its parrying creature by hand, so it never went through the copy.The 5e package release (https://github.com/Pasta-Devs/Marinara-Agents/issues/1092) ships six SRD monsters with a Parry and needs this to play them. Proving that package against staging is what found it.
What changed
creatureActioninpackages/shared/src/features/ruleset-combat/creatures.tscarriesreaction(with its own copy ofagainst) andselfinto the stat block, the same way it already carriessignature,sequenceand the rest.game-ruleset-combat-hitlane names the 5e reference's Toll Sergeant from its bestiary, the way a Game Master names one, and checks that:No format, schema, capability or docs change: the keys and their rules are #6729's.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent on
bd6464e61(this branch's one commit on stagingde567b213), all exit 0:pnpm checkandnode scripts/run-regressions.mjs --filter ruleset(42/42). The new lane case fails on staging without the fix (the Parry comes back with noreaction) and passes with it. Local CodeRabbit (coderabbit review --agent --committed --base staging): 0 findings.The 5e package 0.9.0 was also played against this branch through the shared combat code: the knight's Parry turns a longsword hit of 19 against its 18 into a miss once it adds 2, and its one-attack guard is spent by that blow.
Still to verify by hand (not done by the agent):
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Only
CHANGELOG.mdchanges. No user docs underdocs/are touched, so there is nothing fordocs-i18n.UI evidence (if applicable)
None: nothing on screen changes beyond the existing window now opening for a bestiary creature.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.