From c7fcfd195de7e98c1e582ec67c829e003663cad0 Mon Sep 17 00:00:00 2001 From: frutescens Date: Wed, 13 Nov 2024 22:53:17 -0800 Subject: [PATCH] Fixed bad RNG calls for Covet and Thief too. --- src/data/move.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 74ac61af884..22fec87d387 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -2363,7 +2363,7 @@ export class StealHeldItemChanceAttr extends MoveEffectAttr { if (move.hitsSubstitute(user, target)) { return resolve(false); } - const rand = Phaser.Math.RND.realInRange(0, 1); + const rand = user.randSeedInt(100); if (rand >= this.chance) { return resolve(false); } @@ -8208,7 +8208,7 @@ export function initMoves() { .attr(MultiHitPowerIncrementAttr, 3) .checkAllHits(), new AttackMove(Moves.THIEF, Type.DARK, MoveCategory.PHYSICAL, 60, 100, 25, -1, 0, 2) - .attr(StealHeldItemChanceAttr, 0.3), + .attr(StealHeldItemChanceAttr, 30), new StatusMove(Moves.SPIDER_WEB, Type.BUG, -1, 10, -1, 0, 2) .attr(AddBattlerTagAttr, BattlerTagType.TRAPPED, false, true, 1), new StatusMove(Moves.MIND_READER, Type.NORMAL, -1, 5, -1, 0, 2) @@ -8747,7 +8747,7 @@ export function initMoves() { .attr(HighCritAttr) .attr(StatusEffectAttr, StatusEffect.POISON), new AttackMove(Moves.COVET, Type.NORMAL, MoveCategory.PHYSICAL, 60, 100, 25, -1, 0, 3) - .attr(StealHeldItemChanceAttr, 0.3), + .attr(StealHeldItemChanceAttr, 30), new AttackMove(Moves.VOLT_TACKLE, Type.ELECTRIC, MoveCategory.PHYSICAL, 120, 100, 15, 10, 0, 3) .attr(RecoilAttr, false, 0.33) .attr(StatusEffectAttr, StatusEffect.PARALYSIS)