From 17e13653ba00b7c87dd0c6dd14362fa02c0939f2 Mon Sep 17 00:00:00 2001 From: Josh DM Date: Fri, 20 Oct 2023 17:19:26 -0400 Subject: [PATCH] slightly better --- ui/core/player.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ui/core/player.ts b/ui/core/player.ts index fbfd40c894..2dda11dda0 100644 --- a/ui/core/player.ts +++ b/ui/core/player.ts @@ -953,10 +953,6 @@ export class Player { if (newnibelungAverageCasts == this.nibelungAverageCasts) return; - // only set if nibelungAverageCastsSet is true (via UI). Allows us to give a default other than 0 - if (!this.nibelungAverageCastsSet) - return; - this.nibelungAverageCasts = Math.min(newnibelungAverageCasts, 16); this.miscOptionsChangeEmitter.emit(eventID); } @@ -1413,7 +1409,9 @@ export class Player { this.setInFrontOfTarget(eventID, proto.inFrontOfTarget); this.setDistanceFromTarget(eventID, proto.distanceFromTarget); this.setNibelungAverageCastsSet(eventID, proto.nibelungAverageCastsSet); - this.setNibelungAverageCasts(eventID, proto.nibelungAverageCasts); + if (this.nibelungAverageCastsSet) { + this.setNibelungAverageCasts(eventID, proto.nibelungAverageCasts); + } this.setHealingModel(eventID, proto.healingModel || HealingModel.create()); this.setSpecOptions(eventID, this.specTypeFunctions.optionsFromPlayer(proto));