Fix Psywave causing decimal damage

pull/2/head
Flashfyre 2023-10-28 00:36:41 -04:00
parent d6ee340c59
commit 1a488d421c
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,7 @@ export class RandomLevelDamageAttr extends FixedDamageAttr {
}
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);
}
}