mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 23:32:19 +02:00
Update src/data/move.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
fb2e1267a9
commit
283b175d31
@ -2399,7 +2399,7 @@ export class MultiHitAttr extends MoveAttr {
|
|||||||
}
|
}
|
||||||
const acc = move.accuracy / 100;
|
const acc = move.accuracy / 100;
|
||||||
if (move.hasFlag(MoveFlags.CHECK_ALL_HITS) && !maxMultiHit) {
|
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 acc * (1 - Math.pow(acc, expectedHits)) / (1 - acc);
|
||||||
}
|
}
|
||||||
return expectedHits *= acc;
|
return expectedHits *= acc;
|
||||||
|
Loading…
Reference in New Issue
Block a user