Skip to content

Commit

Permalink
do not compute standard dist twice
Browse files Browse the repository at this point in the history
  • Loading branch information
LlemonDuck committed Nov 14, 2023
1 parent 83b5461 commit 17336f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/CombatCalc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,8 @@ export default class CombatCalc {
])
}

return this.memoizedDist = new AttackDistribution(
[HitDistribution.linear(this.getHitChance(), 0, this.getMaxHit())],
return new AttackDistribution(
[standardDistribution],
);
}

Expand Down

0 comments on commit 17336f0

Please sign in to comment.