Release Healer Man 0.1.22
This commit is contained in:
1 parent
f6f2375145
commit
7f6001723a
144 files changed
+54107
-690
No files matched your search
@@ -29,6 +29,7 @@ import {
|
||||
import { usePartyStore, type PartyCommand, type PartyMember } from "./partyStore";
|
||||
import { useGameStore } from "./store";
|
||||
import { useManastormStore } from "./manastormStore";
|
||||
import { activeDungeonCompletedObjectiveIds } from "./dungeonEncounterRuntime";
|
||||
import { PLAYER_AGGRO_ID, type ThreatSource } from "./aggro";
|
||||
import type { ActiveAura, DispelCategory } from "./combatAuras";
|
||||
import {
|
||||
@@ -121,13 +122,19 @@ export function activePartyBossObjectives(): readonly PartyBossObjective[] {
|
||||
}] : [];
|
||||
}
|
||||
const game = useGameStore.getState();
|
||||
const completed = new Set(activeDungeonCompletedObjectiveIds(game.activeDungeonId));
|
||||
const mobs = useCombatStore.getState().mobs;
|
||||
const objectives = requireDungeonDefinition(game.activeDungeonId).objectiveOrder
|
||||
.filter((objective) => !objective.optional);
|
||||
if (game.activeDungeonId !== "wailing-caverns") return objectives;
|
||||
const phase = useWailingEncounterStore.getState().phase;
|
||||
return phase === "mutanus" || phase === "complete"
|
||||
? objectives
|
||||
: objectives.filter((objective) => objective.id !== "mutanus-spawn");
|
||||
.filter((objective) => !objective.optional && !completed.has(objective.id));
|
||||
const wailingPhase = game.activeDungeonId === "wailing-caverns"
|
||||
? useWailingEncounterStore.getState().phase
|
||||
: null;
|
||||
return objectives.filter((objective) => (
|
||||
!objective.eventOnly
|
||||
|| Boolean(mobs[objective.id])
|
||||
|| (objective.id === "mutanus-spawn"
|
||||
&& (wailingPhase === "mutanus" || wailingPhase === "complete"))
|
||||
));
|
||||
}
|
||||
|
||||
export function resetPartyRuntimeClock(): void {
|
||||
|
||||
Reference in new issue
Block a user