Release Healer Man 0.1.15
This commit is contained in:
1 parent
7b41b102fa
commit
f49e54f35f
43 files changed
+1478
-112
No files matched your search
@@ -97,7 +97,9 @@ describe("Manastorm encounter sessions", () => {
|
||||
const encounter = useManastormStore.getState().currentEncounter!;
|
||||
const revision = useGameStore.getState().sessionRevision;
|
||||
const companion = usePartyStore.getState().members[0];
|
||||
usePartyStore.getState().damageMember(companion.id, companion.maxHealth - 1);
|
||||
usePartyStore.setState((state) => ({
|
||||
members: state.members.map((member) => member.id === companion.id ? { ...member, health: 1 } : member),
|
||||
}));
|
||||
useCombatStore.getState().registerMob(encounter.bossRuntimeId, {
|
||||
name: encounter.bossName,
|
||||
boss: true,
|
||||
@@ -124,8 +126,11 @@ describe("Manastorm encounter sessions", () => {
|
||||
it("uses the same shared charge to revive only the requested companion", () => {
|
||||
const companion = usePartyStore.getState().members[0];
|
||||
const otherCompanion = usePartyStore.getState().members[1];
|
||||
usePartyStore.getState().damageMember(otherCompanion.id, otherCompanion.maxHealth - 1);
|
||||
usePartyStore.getState().damageMember(companion.id, companion.maxHealth);
|
||||
usePartyStore.setState((state) => ({
|
||||
members: state.members.map((member) => member.id === companion.id
|
||||
? { ...member, health: 0, status: "down" }
|
||||
: member.id === otherCompanion.id ? { ...member, health: 1 } : member),
|
||||
}));
|
||||
expect(usePartyStore.getState().members[0].health).toBe(0);
|
||||
|
||||
expect(resurrectManastormSession({
|
||||
@@ -160,9 +165,9 @@ describe("Manastorm encounter sessions", () => {
|
||||
}
|
||||
useCombatStore.setState({ health: 0 });
|
||||
const companions = usePartyStore.getState().members;
|
||||
for (const companion of companions) {
|
||||
usePartyStore.getState().damageMember(companion.id, companion.maxHealth);
|
||||
}
|
||||
usePartyStore.setState((state) => ({
|
||||
members: state.members.map((member) => ({ ...member, health: 0, status: "down" })),
|
||||
}));
|
||||
const companion = companions.at(-1)!;
|
||||
|
||||
expect(manastormPartyIsDefeated()).toBe(true);
|
||||
@@ -176,9 +181,9 @@ describe("Manastorm encounter sessions", () => {
|
||||
it("waits for an explicit shared resurrection when the full party is down", () => {
|
||||
useCombatStore.setState({ health: 0 });
|
||||
const companions = usePartyStore.getState().members;
|
||||
for (const companion of companions) {
|
||||
usePartyStore.getState().damageMember(companion.id, companion.maxHealth);
|
||||
}
|
||||
usePartyStore.setState((state) => ({
|
||||
members: state.members.map((member) => ({ ...member, health: 0, status: "down" })),
|
||||
}));
|
||||
const companion = companions.at(-1)!;
|
||||
|
||||
expect(resolveManastormActorDown({
|
||||
|
||||
Reference in new issue
Block a user