Animate ready battle units
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user