forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
4957b69e86
commit
8a98797fcf
30 files changed
+469
-39
No files matched your search
@@ -32,7 +32,10 @@ export function ArenaActionBar({ character, actor, layer, inputMode, blocked, on
|
||||
: [{ columns: 8, slots: PC_ACTION_CONTROLS.map((control) => ({ abilityId: bindings[actionBindingId(layer, control)], label: bindingLabel("pc", `ability:${layer}:${control}`) })) }];
|
||||
const items = Object.fromEntries(abilities.map((ability): [string, ActionBarItem] => {
|
||||
const learned = actor?.abilityIds ? actor.abilityIds.includes(ability.id) : arenaAbilityIsLearned(ability, character, level);
|
||||
const remaining = Math.max(actor?.cooldowns[ability.id] ?? 0, actor?.gcdRemainingMs ?? 0) / 1000;
|
||||
const remaining = Math.max(
|
||||
actor?.cooldowns[ability.id] ?? 0,
|
||||
ability.gcdMs > 0 ? actor?.gcdRemainingMs ?? 0 : 0,
|
||||
) / 1000;
|
||||
return [ability.id, {
|
||||
id: ability.id, name: ability.name, iconUrl: ability.icon, shortLabel: ability.sigil,
|
||||
description: ability.description, target: ability.target,
|
||||
|
||||
+1
-1
@@ -264,7 +264,7 @@ export function Hud({ surface = "top", onLayoutChange, completion, onFinish, onR
|
||||
const ability = abilityAtLevel(catalogAbility, level, learnedTalentRank);
|
||||
const talentLocked = Boolean(abilityTalentNodeId(ability)) && !learnedTalentRank;
|
||||
const personalRemaining = Math.max(0, (cooldowns[ability.id] ?? 0) - clock);
|
||||
const globalRemaining = Math.max(0, globalCooldownEndsAt - clock);
|
||||
const globalRemaining = ability.gcdMs > 0 ? Math.max(0, globalCooldownEndsAt - clock) : 0;
|
||||
const remaining = Math.max(personalRemaining, globalRemaining);
|
||||
const abilityCosts = resolvedAbilityCosts(ability, talentModifiers, {
|
||||
classId,
|
||||
|
||||
Reference in new issue
Block a user