mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6913] Ruleset classic-items regression lane fails now and then: its directed battle can end before the test is done #3878
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#3878
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?
Originally created by @kolacheee on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6913
Originally assigned to: @kolacheee on GitHub.
scripts/regressions/game-ruleset-classic-items.regression.tsfails intermittently in its combat-director section with{"error":"Battle already finished."}(400 !== 200) fromonAdasTurn, when the test tries to use the second item (the litany page).Cause: the directed battle is Ada (30 HP) against a Rat (30 HP, attack 8). Initiative is rolled again every round, so the rat can act twice between Ada's turns, and the dawn bell can hit hard, so the battle can end on the dice before the test's second command.
Seen once in a full
pnpm regressionrun on the merged #6910 code (479/480); the lane passed alone several times before.Fix: give both sides 300 HP and the rat no attack, so neither side can end the battle before the test is done.
@kolacheee commented on GitHub (Sep 30, 2026):
A second lane of the same arc failed the same way in #6914's CI:
game-ruleset-loot.regression.tsasserted that the bags hold exactly what the moth's table dropped, but the party starts with two hand axes, so whenever the table's weapon line picked a hand axe the count was 3, not 1 ("Hand axe is in the bags", 3 !== 1). #6914 now also counts the drop past what the party carried in. Proven by forcing the table to drop a hand axe: the old assertion fails, the new one passes.