fix overwritten change

This commit is contained in:
Yentis 2024-05-18 00:41:31 +02:00
parent aa91ae4c49
commit 7f9db11543

View File

@ -1112,8 +1112,11 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
let shinyThreshold = new Utils.IntegerHolder(32);
if (thresholdOverride === undefined) {
if (!this.hasTrainer())
if (!this.hasTrainer()) {
if (new Date() < new Date('2024-05-21'))
shinyThreshold.value *= 3;
this.scene.applyModifiers(ShinyRateBoosterModifier, true, shinyThreshold);
}
} else
shinyThreshold.value = thresholdOverride;