Release Healer Man 0.1.30

This commit is contained in:
phenom committed 2026-09-11 18:49:33 -04:00
1 parent 544c1bee91
commit 7d7fd567f0
845 files changed
+2040 -87

No files matched your search

+20
View File
@@ -172,6 +172,26 @@ describe("combat store", () => {
unsubscribe();
});
it("marks an instant area resolution for its original source cast phase", () => {
useCombatStore.getState().initializeCharacter({ classId: "mage", level: 2 });
registerTarget("instant-presentation-target", [3, 0, 0], 500, 0);
const events: CombatPresentationEvent[] = [];
const unsubscribe = subscribeCombatPresentation((message) => {
if (message.kind === "event" && message.event.abilityId === "mage-frost-nova") {
events.push(message.event);
}
});
expect(useCombatStore.getState().castAbility("mage-frost-nova", [0, 0, 0], 1_000).ok).toBe(true);
expect(useCombatStore.getState().activeCast).toBeNull();
expect(events.map((event) => event.phase)).toEqual(["release", "impact"]);
expect(events.every((event) => event.occurredAt === 1_000)).toBe(true);
expect(events.every((event) => event.instantCast)).toBe(true);
expect(events.every((event) => event.durationMs === undefined)).toBe(true);
unsubscribe();
});
it("identifies the player as the target of a self-cast aura presentation", () => {
useCombatStore.getState().initializeCharacter({ classId: "priest", level: 80 });
const events: CombatPresentationEvent[] = [];