Animate ready battle units

This commit is contained in:
2026-06-22 11:08:27 +09:00
parent 48a1a9ccbb
commit 19740a8c34
2 changed files with 31 additions and 5 deletions

View File

@@ -74,6 +74,11 @@ try {
throw new Error(`Debug battle state was not available: ${JSON.stringify(result.battleState)}`);
}
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)}`);
}
console.log(`Verified title-to-battle flow and debug API at ${targetUrl}`);
} finally {
await browser?.close();