forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
69809f7228
commit
ff20ab8779
101 files changed
+16713
-945
No files matched your search
@@ -938,9 +938,14 @@ function mergeWow335ClassicAbilities(
|
||||
: ability;
|
||||
}
|
||||
const [updated] = remaining.splice(importedIndex, 1);
|
||||
// The selected source Kick is pure interruption. The legacy prototype's
|
||||
// damage and second interrupt cannot become effects of that sourced row.
|
||||
const sourceOnlyKick = ability.id === "rogue-kick" && updated.id === "wow335-rogue-kick"
|
||||
&& updated.classId === "rogue" && updated.source === "wow335-progression"
|
||||
&& updated.dbcSpellId === 1766;
|
||||
const ranks = updated.ranks?.map((rank) => ({
|
||||
...rank,
|
||||
effects: mergeCoreEffects(rank.effects, ability.effects),
|
||||
effects: sourceOnlyKick ? rank.effects : mergeCoreEffects(rank.effects, ability.effects),
|
||||
}));
|
||||
return {
|
||||
...updated,
|
||||
@@ -950,7 +955,7 @@ function mergeWow335ClassicAbilities(
|
||||
range: ability.range,
|
||||
...(ability.radius !== undefined ? { radius: ability.radius } : {}),
|
||||
...(ability.cooldownGroup !== undefined ? { cooldownGroup: ability.cooldownGroup } : {}),
|
||||
effects: mergeCoreEffects(updated.effects, ability.effects),
|
||||
effects: sourceOnlyKick ? updated.effects : mergeCoreEffects(updated.effects, ability.effects),
|
||||
ranks,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user