Release v0.1.1 2026-07-10
This commit is contained in:
@@ -173,6 +173,19 @@ describe("Disc Priest combat simulation", () => {
|
||||
expect(paused.castAbility("renew")).toBe(false);
|
||||
});
|
||||
|
||||
it("does not publish unchanged player positions while idle", () => {
|
||||
let updates = 0;
|
||||
const unsubscribe = useGameStore.subscribe(() => { updates += 1; });
|
||||
const start = useGameStore.getState().playerPosition;
|
||||
|
||||
useGameStore.getState().setPlayerPosition([start[0], start[1]]);
|
||||
expect(updates).toBe(0);
|
||||
|
||||
useGameStore.getState().setPlayerPosition([start[0] + 0.25, start[1]]);
|
||||
expect(updates).toBe(1);
|
||||
unsubscribe();
|
||||
});
|
||||
|
||||
it("telegraphs, executes, and recovers from a Bull charge", () => {
|
||||
while (useGameStore.getState().time < 7.1) useGameStore.getState().tick(0.1);
|
||||
const telegraph = useGameStore.getState().bossMotion;
|
||||
|
||||
Reference in New Issue
Block a user