Skip to content

fix(engine): restore legacy mana spend triggers - #7387

Merged
matthewevans merged 4 commits into
mainfrom
ship/legacy-mana-spend-triggers
Aug 14, 2026
Merged

fix(engine): restore legacy mana spend triggers#7387
matthewevans merged 4 commits into
mainfrom
ship/legacy-mana-spend-triggers

style(engine): format mana save migration

942c79b
Select commit
Loading
Failed to load commit list.
Superagent Security / Superagent Security Scan succeeded Aug 14, 2026 in 27s

PR scan passed

No suspicious PR changes were detected.

Details

The PR adds backward-compatible deserialization for legacy ManaSpellGrant save data in crates/engine/src/types/mana.rs. Changes are limited to: (1) a new LegacyManaSpellGrantRepr enum with a TryFrom conversion to the current ManaSpellGrant type, (2) checked i32::try_from(value) for mana-value thresholds with a test for out-of-range values, and (3) unit tests covering the migration paths. No CI/CD files, lifecycle hooks, dependency changes, network calls, or eval/exec patterns are present.