forked from phenom/healer-man
Release Healer Man 0.1.29
This commit is contained in:
1 parent
8c9809d3e0
commit
544c1bee91
120 files changed
+4363
-1036
No files matched your search
@@ -948,9 +948,12 @@ export function abilityAtLevel(
|
||||
learnedTalentRank?: number,
|
||||
): AbilityDefinition {
|
||||
const rank = abilityRankForLevel(ability, playerLevel, learnedTalentRank);
|
||||
if (!rank) return ability;
|
||||
const effects = rank?.effects ?? ability.effects;
|
||||
const target = effects.length > 0 && effects.every((effect) => effect.kind === "dispel" && effect.relationship === "target" && effect.mode === "cleanse") ? "any" : ability.target;
|
||||
if (!rank) return target === ability.target ? ability : { ...ability, target };
|
||||
return {
|
||||
...ability,
|
||||
target,
|
||||
dbcSpellId: rank.spellId,
|
||||
description: rank.description || ability.description,
|
||||
castMode: rank.castMode,
|
||||
|
||||
Reference in new issue
Block a user