Stabilize idle unit animations

This commit is contained in:
2026-06-22 11:39:37 +09:00
parent cbde3da8cd
commit db26a62dd4
10 changed files with 33 additions and 15 deletions

View File

@@ -75,8 +75,8 @@ try {
}
const readyUnits = result.battleState.units.filter((unit) => !unit.acted);
if (!readyUnits.some((unit) => unit.animating && unit.animationKey?.includes('-walk-'))) {
throw new Error(`Expected ready units to loop walk frames: ${JSON.stringify(readyUnits)}`);
if (!readyUnits.some((unit) => unit.animating && unit.animationKey?.includes('-idle-'))) {
throw new Error(`Expected ready units to loop idle frames: ${JSON.stringify(readyUnits)}`);
}
console.log(`Verified title-to-battle flow and debug API at ${targetUrl}`);