fix: cap cast progress at 100% after descent completion (bug #381)
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m20s

Defense-in-depth fix across 2 files:

1. combat-descent-actions.ts: Added castProgress: 0 and weaponCastProgress: {}
   to the isDescentComplete set() call so the meter resets immediately.

2. combat-actions.ts: Added isDescentComplete to the early-exit guard in
   processCombatTick so combat processing stops entirely once descent is
   complete, preventing phantom spell casts from stale castProgress values.

All 1196 tests pass.
This commit is contained in:
2026-06-12 19:03:02 +02:00
parent 0add3d6260
commit 99a5f498c0
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Circular Dependencies
Generated: 2026-06-12T16:57:09.913Z
Generated: 2026-06-12T17:00:42.616Z
Found: 4 circular chain(s) — these MUST be fixed before modifying involved files.
1. 1) data/guardian-encounters.ts > data/guardian-procedural.ts
+1 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-06-12T16:57:07.675Z",
"generated": "2026-06-12T17:00:40.332Z",
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
},