Fixed bad RNG calls for Covet and Thief too.
This commit is contained in:
parent
1a15683983
commit
c7fcfd195d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue