Skip to content

Commit

Permalink
slightly better
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-green committed Oct 20, 2023
1 parent 90c9e8f commit 17e1365
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ui/core/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -953,10 +953,6 @@ export class Player<SpecType extends Spec> {
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);
}
Expand Down Expand Up @@ -1413,7 +1409,9 @@ export class Player<SpecType extends Spec> {
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));

Expand Down

0 comments on commit 17e1365

Please sign in to comment.