Clean up randomMultiplier

This commit is contained in:
innerthunder 2024-09-03 23:50:20 -07:00
parent ed84c75f8e
commit 03137ccd82

View File

@ -2132,7 +2132,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
* A multiplier for random damage spread in the range [0.85, 1] * A multiplier for random damage spread in the range [0.85, 1]
* This is always 1 for simulated calls. * This is always 1 for simulated calls.
*/ */
const randomMultiplier = simulated ? 1 : ((this.scene.randBattleSeedInt(16) + 85) / 100); const randomMultiplier = simulated ? 1 : ((this.randSeedIntRange(85, 100)) / 100);
const sourceTypes = source.getTypes(); const sourceTypes = source.getTypes();
const matchesSourceType = sourceTypes.includes(moveType); const matchesSourceType = sourceTypes.includes(moveType);