Disable reload detection for Covet

This was causing the game to ALWAYS take the route of a reload
This commit is contained in:
RedstonewolfX 2024-08-14 09:19:26 -04:00
parent 522d65c5dc
commit ec7852a706

View File

@ -1943,6 +1943,7 @@ export class StealHeldItemChanceAttr extends MoveEffectAttr {
return new Promise<boolean>(resolve => {
const rand = Phaser.Math.RND.realInRange(0, 1);
// Swap to RNG state for a reload
/*
const tempState = Phaser.Math.RND.state()
Phaser.Math.RND.state(user.scene.battleRNGState)
const rand_reload = Phaser.Math.RND.realInRange(0, 1);
@ -1957,6 +1958,8 @@ export class StealHeldItemChanceAttr extends MoveEffectAttr {
console.error("Reload discrepancy: Succeeds now, but fails after reload")
LoggerTools.flagReset(user.scene, user.scene.currentBattle.waveIndex)
}
*/
if (rand >= this.chance) {
return resolve(false);
}