fix: resolve 3 critical bugs — #354 attunement ReferenceError, #353 preparation mana exploit, #352 golem mana wipe
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m1s

- #354: unlockAttunement now uses _get() instead of undefined 'state' variable
- #353: startPreparing now deducts raw mana from the mana store after validation
- #352: processGolemAttacks/processBasicAttack accept current mana as params instead of initializing to 0/{}
- Updated golem-combat-actions.test.ts to pass new currentRawMana/currentElements params
- Added regression tests for all 3 bugs (16 new tests, all passing)
This commit is contained in:
2026-06-10 20:49:46 +02:00
parent 43bb53e0b4
commit 33be133813
12 changed files with 490 additions and 14 deletions
+3
View File
@@ -198,6 +198,9 @@ Mana-Loop/
│ │ │ │ ├── achievements.test.ts
│ │ │ │ ├── activity-log.test.ts
│ │ │ │ ├── attunement-conversion-fix.test.ts
│ │ │ │ ├── bug-352-golem-mana-wipe.test.ts
│ │ │ │ ├── bug-353-preparation-mana.test.ts
│ │ │ │ ├── bug-354-unlock-attunement.test.ts
│ │ │ │ ├── bug-fixes.test.ts
│ │ │ │ ├── combat-actions.test.ts
│ │ │ │ ├── combat-utils.test.ts