diff --git a/src/lib/PlayerVsNPCCalc.ts b/src/lib/PlayerVsNPCCalc.ts index adcedf97..bddfb2e6 100644 --- a/src/lib/PlayerVsNPCCalc.ts +++ b/src/lib/PlayerVsNPCCalc.ts @@ -2156,11 +2156,11 @@ export default class PlayerVsNPCCalc extends BaseCalc { private static tbowScaling = (current: number, magic: number, accuracyMode: boolean): number => { const factor = accuracyMode ? 10 : 14; const base = accuracyMode ? 140 : 250; + const clamp = accuracyMode ? 140 : 250; const t2 = Math.trunc((3 * magic - factor) / 100); const t3 = Math.trunc((Math.trunc(3 * magic / 10) - (10 * factor)) ** 2 / 100); - - const bonus = base + t2 - t3; + const bonus = Math.max(0, Math.min(clamp, base + t2 - t3)); return Math.trunc(current * bonus / 100); };