mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-18 13:29: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) {
|
switch (this.multiHitType) {
|
||||||
case MultiHitType._2_TO_5:
|
case MultiHitType._2_TO_5:
|
||||||
{
|
{
|
||||||
const rand = user.randSeedInt(16);
|
const rand = user.randSeedInt(20);
|
||||||
const hitValue = new Utils.IntegerHolder(rand);
|
const hitValue = new Utils.NumberHolder(rand);
|
||||||
applyAbAttrs(MaxMultiHitAbAttr, user, null, false, hitValue);
|
applyAbAttrs(MaxMultiHitAbAttr, user, null, false, hitValue);
|
||||||
if (hitValue.value >= 10) {
|
if (hitValue.value >= 13) {
|
||||||
return 2;
|
return 2;
|
||||||
} else if (hitValue.value >= 4) {
|
} else if (hitValue.value >= 6) {
|
||||||
return 3;
|
return 3;
|
||||||
} else if (hitValue.value >= 2) {
|
} else if (hitValue.value >= 3) {
|
||||||
return 4;
|
return 4;
|
||||||
} else {
|
} else {
|
||||||
return 5;
|
return 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user