Update Healer Man server

This commit is contained in:
phenom committed 2026-09-28 22:46:45 -04:00
1 parent 9d7e0e2f9e
commit 35dfdaed61
94 files changed
+17034 -418

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import type { AbilityEffect } from "./abilityCatalog";
import type { RomGeneratedAbilityLike } from "./romAbilitySemantics";
type RomWarriorGeneratedRow = RomGeneratedAbilityLike & {
readonly classId?: string;
readonly secondaryClassId?: string;
};
/** Give the source-defined Warrior/Priest Defender's Roar buffs their party scope. */
export function overrideRomWarriorEffects(
row: RomWarriorGeneratedRow,
translated: readonly AbilityEffect[],
): readonly AbilityEffect[] | null {
if (row.classId !== "rom-warrior"
|| row.secondaryClassId !== "rom-priest"
|| row.sourceSkillId !== 491466) return null;
return translated.map((effect) => effect.kind === "apply-aura"
&& effect.aura.modifiers?.some((modifier) => modifier.kind === "stat"
&& modifier.stat === "maximum-health")
? { ...effect, scope: "party" }
: effect);
}