Update Healer Man server

This commit is contained in:
phenom committed 2026-09-26 20:27:07 -04:00
1 parent 4957b69e86
commit 8a98797fcf
30 files changed
+469 -39

No files matched your search

+3 -3
View File
@@ -4983,7 +4983,7 @@ export const useCombatStore = create<CombatState>((set, get) => ({
&& aurasForEntity(state.auras, PLAYER_AURA_ENTITY_ID).some((aura) => aura.definition.utilityTags?.includes("pacified"))
) failure = "player-controlled";
else if (state.activeCast && !completingCast) failure = "already-casting";
else if (!completingCast && state.globalCooldownEndsAt > now) failure = "global-cooldown";
else if (!completingCast && ability.gcdMs > 0 && state.globalCooldownEndsAt > now) failure = "global-cooldown";
else if (!completingCast && (state.cooldowns[abilityId] ?? 0) > now) failure = "cooldown";
else if ((state.schoolLockedUntil[spellSchool] ?? 0) > now) failure = "school-locked";
else if (ability.id === "rom-mage-primary-55" && !hasRuneWakerState("rom-charged")) failure = "condition-not-met";
@@ -5285,7 +5285,7 @@ export const useCombatStore = create<CombatState>((set, get) => ({
critical: false,
outcome: "started",
}),
globalCooldownEndsAt: now + gcdMs,
globalCooldownEndsAt: gcdMs > 0 ? now + gcdMs : state.globalCooldownEndsAt,
selectedTargetId: effectiveTarget === "hostile" ? targetId : state.selectedTargetId,
feedback: nextFeedback(
"success",
@@ -6587,7 +6587,7 @@ export const useCombatStore = create<CombatState>((set, get) => ({
areaEffects: work.areaEffects,
lastCombatResult: work.combatResults.at(-1) ?? state.lastCombatResult,
cooldowns,
globalCooldownEndsAt: completingCast ? state.globalCooldownEndsAt : now + gcdMs,
globalCooldownEndsAt: completingCast || gcdMs <= 0 ? state.globalCooldownEndsAt : now + gcdMs,
activeCast: null,
...autoAttackUpdate,
playerAnimationEvent: nextAnimationEvent("ability-release", ability.id),