Polish battle viewport and victory flow

This commit is contained in:
2026-06-22 15:21:34 +09:00
parent f30b99a78e
commit ce8050c5cc
4 changed files with 130 additions and 41 deletions

View File

@@ -99,7 +99,7 @@ try {
throw new Error(`Expected a scrollable battle map: ${JSON.stringify(cameraBeforeScroll)}`);
}
await page.mouse.move(768, 360);
await page.mouse.move(872, 360);
await page.waitForTimeout(520);
const cameraAfterEdgeScroll = await page.evaluate(() => window.__HEROS_DEBUG__?.battle()?.camera);
if (!cameraAfterEdgeScroll || cameraAfterEdgeScroll.x <= cameraBeforeScroll.x) {