Update src/data/move.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Sirz Benjie 2025-02-25 00:16:13 -06:00 committed by GitHub
parent fb2e1267a9
commit 283b175d31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2399,7 +2399,7 @@ export class MultiHitAttr extends MoveAttr {
}
const acc = move.accuracy / 100;
if (move.hasFlag(MoveFlags.CHECK_ALL_HITS) && !maxMultiHit) {
// N.B. No moves should be the _2_TO_5 variant have the CHECK_ALL_HITS flag.
// N.B. No moves should be the _2_TO_5 variant and have the CHECK_ALL_HITS flag.
return acc * (1 - Math.pow(acc, expectedHits)) / (1 - acc);
}
return expectedHits *= acc;