Update Healer Man server
This commit is contained in:
1 parent
9d7e0e2f9e
commit
35dfdaed61
94 files changed
+17034
-418
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import type { AbilityDefinition } from "./abilityCatalog";
|
||||
|
||||
const ELECTROSTATIC_CHARGE_EXPERTISE_SPELL_ID = 498_871;
|
||||
const ELECTROSTATIC_CHARGE_SPELL_ID = 491_156;
|
||||
|
||||
/** Mage/Champion's level-45 passive shortens Electrostatic Charge by 30 seconds. */
|
||||
export function romMageCooldownReductionMs(
|
||||
classId: string | null,
|
||||
secondaryClassId: string | null | undefined,
|
||||
ability: Pick<AbilityDefinition, "dbcSpellId">,
|
||||
level: number,
|
||||
abilities: readonly Pick<AbilityDefinition, "dbcSpellId" | "unlockLevel" | "passive">[],
|
||||
): number {
|
||||
if (classId !== "rom-mage"
|
||||
|| secondaryClassId !== "rom-champion"
|
||||
|| ability.dbcSpellId !== ELECTROSTATIC_CHARGE_SPELL_ID
|
||||
|| level < 45) return 0;
|
||||
|
||||
return abilities.some((candidate) => candidate.passive
|
||||
&& candidate.dbcSpellId === ELECTROSTATIC_CHARGE_EXPERTISE_SPELL_ID
|
||||
&& candidate.unlockLevel <= level)
|
||||
? 30_000
|
||||
: 0;
|
||||
}
|
||||
Reference in new issue
Block a user