mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-24 22:37:33 -04:00
Fix Psywave causing decimal damage
This commit is contained in:
parent
d6ee340c59
commit
1a488d421c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue