forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
6cc1b9217f
commit
6114a2295f
67 files changed
+6241
-347
No files matched your search
@@ -51,6 +51,7 @@ import { romPriestChampionCooldownOverride } from "./romPriestChampionOverrides"
|
||||
import { applyTalentModifierValue, talentModifiersForRanks } from "./talentModifiers";
|
||||
import { romWarlockMageSoulBrandStingHasWillpowerBladeState } from "./romWarlockMageSoulBrandSting";
|
||||
import { EMPTY_ITEM_STATS } from "./itemStats";
|
||||
import { romBloodArrowCastCosts } from "./romBloodArrow";
|
||||
|
||||
export interface PartyAbilityContext {
|
||||
readonly now: number;
|
||||
@@ -281,7 +282,7 @@ export function partyAbilityCosts(member: PartyMember, ability: AbilityDefinitio
|
||||
const mageClearcasting = member.classId === "mage" && auras.some((aura) => (
|
||||
aura.definition.utilityTags?.includes(WOW335_MAGE_ARCANE_CONCENTRATION_TAG)
|
||||
));
|
||||
return (adjustedAbility.costs?.length ? adjustedAbility.costs : [adjustedAbility.cost]).map((cost) => {
|
||||
const resolved = (adjustedAbility.costs?.length ? adjustedAbility.costs : [adjustedAbility.cost]).map((cost) => {
|
||||
const baseMana = cost.percentageBasis === "base-mana"
|
||||
? adjustedAbility.source === "runewaker" && member.statRuleset === "rom"
|
||||
? deriveCharacterStats(
|
||||
@@ -307,6 +308,16 @@ export function partyAbilityCosts(member: PartyMember, ability: AbilityDefinitio
|
||||
: cost.resource !== "health" && mageClearcasting ? 0 : Math.max(0, Math.round(adjusted)),
|
||||
};
|
||||
});
|
||||
const bloodArrowCosts = romBloodArrowCastCosts(
|
||||
ability,
|
||||
member,
|
||||
auras,
|
||||
member.id,
|
||||
member.maxHealth,
|
||||
companionResourceMaximum(member, "mana"),
|
||||
now,
|
||||
);
|
||||
return [...resolved, ...bloodArrowCosts];
|
||||
}
|
||||
|
||||
export function partyAbilityIsReady(
|
||||
|
||||
Reference in new issue
Block a user