Stabilize idle unit animations
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user