mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-17 12:59:25 +02:00
Multi-hit moves now use gen 5+ behavior
This commit is contained in:
parent
f83ab00ce4
commit
f397980877
@ -2231,14 +2231,14 @@ export class MultiHitAttr extends MoveAttr {
|
||||
switch (this.multiHitType) {
|
||||
case MultiHitType._2_TO_5:
|
||||
{
|
||||
const rand = user.randSeedInt(16);
|
||||
const hitValue = new Utils.IntegerHolder(rand);
|
||||
const rand = user.randSeedInt(20);
|
||||
const hitValue = new Utils.NumberHolder(rand);
|
||||
applyAbAttrs(MaxMultiHitAbAttr, user, null, false, hitValue);
|
||||
if (hitValue.value >= 10) {
|
||||
if (hitValue.value >= 13) {
|
||||
return 2;
|
||||
} else if (hitValue.value >= 4) {
|
||||
} else if (hitValue.value >= 6) {
|
||||
return 3;
|
||||
} else if (hitValue.value >= 2) {
|
||||
} else if (hitValue.value >= 3) {
|
||||
return 4;
|
||||
} else {
|
||||
return 5;
|
||||
|
Loading…
Reference in New Issue
Block a user