End shiny event

I hope everyone enjoyed the extended shiny event this weekend.
This commit is contained in:
Madmadness65 2024-05-21 18:58:48 -05:00
parent bbfb4bb795
commit 3c8b4550b6
1 changed files with 1 additions and 4 deletions

View File

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