Skip to content

Commit

Permalink
hide incomplete ttks from slow-htk bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
LlemonDuck committed Dec 5, 2024
1 parent db03082 commit 2e0074a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/PlayerVsNPCCalc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ export default class PlayerVsNPCCalc extends BaseCalc {
accum += k * v;
}

if (probAccum < TTK_DIST_EPSILON) {
if (probAccum < (1 - TTK_DIST_EPSILON)) {
return undefined;
}
return (accum + this.getExpectedAttackSpeed() - 1) * SECONDS_PER_TICK;
Expand Down

0 comments on commit 2e0074a

Please sign in to comment.