Fix Psywave causing decimal damage
parent
d6ee340c59
commit
1a488d421c
|
@ -978,7 +978,7 @@ export class RandomLevelDamageAttr extends FixedDamageAttr {
|
||||||
}
|
}
|
||||||
|
|
||||||
getDamage(user: Pokemon, target: Pokemon, move: Move): number {
|
getDamage(user: Pokemon, target: Pokemon, move: Move): number {
|
||||||
return user.level * (Utils.randIntRange(50, 150) * 0.01);
|
return Math.max(Math.floor(user.level * (Utils.randIntRange(50, 150) * 0.01)), 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue