[GH-ISSUE #8265] Game Mode: a fight with an hp_threshold mechanic at interval 0 never starts #8212

Closed
opened 2026-10-26 04:03:22 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @kolacheee on GitHub.

A Game Master's combat mechanic that no interval drives (trigger hp_threshold) can come with interval: 0. The battle start route only accepts an interval of 1 or more, so the whole fight is refused: the page says "The combat decision could not be completed... Number must be greater than or equal to 1", and Reload battle gets the same 400 from POST /api/game/combat/director/start. The error names no field and the server logs nothing, so it is hard to trace.

A status carried in with 0 turns left is refused the same way.

Expected: 0 is accepted for both (the combat code already treats an interval of 0 as none), and a refused start says which field it refused.

Originally created by @kolacheee on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8265 Originally assigned to: @kolacheee on GitHub. A Game Master's combat mechanic that no interval drives (trigger `hp_threshold`) can come with `interval: 0`. The battle start route only accepts an interval of 1 or more, so the whole fight is refused: the page says "The combat decision could not be completed... Number must be greater than or equal to 1", and Reload battle gets the same 400 from `POST /api/game/combat/director/start`. The error names no field and the server logs nothing, so it is hard to trace. A status carried in with 0 turns left is refused the same way. Expected: 0 is accepted for both (the combat code already treats an interval of 0 as none), and a refused start says which field it refused.
bsakaguchi 2026-10-26 04:03:22 +07:00
  • closed this issue
  • added the
    in-pr
    label
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#8212
No description provided.