mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 09:19:31 +02:00
Disable reload detection for Covet
This was causing the game to ALWAYS take the route of a reload
This commit is contained in:
parent
522d65c5dc
commit
ec7852a706
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user