Update Healer Man server
This commit is contained in:
1 parent
4957b69e86
commit
8a98797fcf
30 files changed
+469
-39
No files matched your search
@@ -542,7 +542,8 @@ describe("combat store", () => {
|
||||
aura.definition.utilityTags?.includes("next-heal-free-critical")
|
||||
))).toBe(true);
|
||||
|
||||
const heal = useCombatStore.getState().castAbility("wow335-priest-lesser-heal", undefined, 3_000);
|
||||
expect(useCombatStore.getState().globalCooldownEndsAt).toBe(0);
|
||||
const heal = useCombatStore.getState().castAbility("wow335-priest-lesser-heal", undefined, 1_000);
|
||||
expect(heal.ok).toBe(true);
|
||||
expect(useCombatStore.getState().activeCast?.originalDurationMs).toBeGreaterThan(0);
|
||||
const completion = useCombatStore.getState().activeCast!.completesAt;
|
||||
@@ -560,6 +561,21 @@ describe("combat store", () => {
|
||||
.toMatchObject({ ok: false, reason: "not-enough-resource" });
|
||||
});
|
||||
|
||||
it("uses Inner Focus during another spell's global cooldown without clearing it", () => {
|
||||
useCombatStore.getState().initializeCharacter({ classId: "priest", level: 80 });
|
||||
const talent = TALENT_NODES.find((node) => node.name === "Inner Focus")!;
|
||||
useCombatStore.setState({ talentRanks: { [talent.id]: 1 } });
|
||||
const innerFocus = abilitiesForClass("priest").find((ability) => ability.name === "Inner Focus")!;
|
||||
|
||||
expect(useCombatStore.getState().castAbility("wow335-priest-power-word-shield", undefined, 1_000).ok).toBe(true);
|
||||
const gcdEnd = useCombatStore.getState().globalCooldownEndsAt;
|
||||
expect(gcdEnd).toBeGreaterThan(1_000);
|
||||
expect(useCombatStore.getState().castAbility(innerFocus.id, undefined, 1_100).ok).toBe(true);
|
||||
expect(useCombatStore.getState().globalCooldownEndsAt).toBe(gcdEnd);
|
||||
expect(useCombatStore.getState().castAbility("wow335-priest-renew", undefined, 1_100))
|
||||
.toMatchObject({ ok: false, reason: "global-cooldown" });
|
||||
});
|
||||
|
||||
it("ticks damage over time and awards kill experience exactly once", () => {
|
||||
useCombatStore.getState().initializeCharacter({ classId: "warlock", level: 1, xp: 0 });
|
||||
registerTarget("ooze", [10, 0, 0], 5, 100);
|
||||
|
||||
Reference in new issue
Block a user