forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
4c768fbec6
commit
b16821e92e
330 files changed
+35406
-1760
No files matched your search
@@ -214,6 +214,29 @@ export function romPriestKnightCastEffects(
|
||||
if (ability.source !== "runewaker" || casterMaxHealth <= 0) return effects;
|
||||
const priestChampionEffects = romPriestChampionCastEffects(ability, effects, learnedPassiveSpellIds);
|
||||
if (priestChampionEffects !== effects) return priestChampionEffects;
|
||||
if (ability.dbcSpellId === 490276
|
||||
&& ability.classId === "rom-priest"
|
||||
&& ability.secondaryClassId === undefined) {
|
||||
// Current CoA keeps Holy Void as Priest-primary and its Voidal Infection
|
||||
// lowers physical defense. Normalize that local stat alias to armor so the
|
||||
// generic aura resolver applies it to both character and NPC targets. Keep
|
||||
// magical-defense intact; NPCs use it for modeled resistances, but the
|
||||
// simulator has no Light/Holy resistance stat to reduce this spell's hit.
|
||||
return effects.map((effect) => effect.kind === "apply-aura"
|
||||
&& effect.aura.id === "rom-priest-holy-void"
|
||||
? {
|
||||
...effect,
|
||||
aura: {
|
||||
...effect.aura,
|
||||
modifiers: effect.aura.modifiers?.map((modifier) => (
|
||||
modifier.kind === "stat" && modifier.stat === "physical-defense"
|
||||
? { ...modifier, stat: "armor" }
|
||||
: modifier
|
||||
)),
|
||||
},
|
||||
}
|
||||
: effect);
|
||||
}
|
||||
if (ability.dbcSpellId === 491588
|
||||
&& ability.classId === "rom-mage"
|
||||
&& ability.secondaryClassId === "rom-priest"
|
||||
|
||||
Reference in new issue
Block a user