mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 06:45:24 +01:00
[Bug] Shinies won't be forced to match event boss shiny if set (#6724)
This commit is contained in:
parent
76453a31d1
commit
babeb32edb
@ -6388,12 +6388,14 @@ export class EnemyPokemon extends Pokemon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const eventBossVariant = getDailyEventSeedBossVariant(globalScene.seed);
|
const eventBossVariant = getDailyEventSeedBossVariant(globalScene.seed);
|
||||||
if (eventBossVariant != null && globalScene.gameMode.isWaveFinal(globalScene.currentBattle.waveIndex)) {
|
const eventBossVariantEnabled =
|
||||||
|
eventBossVariant != null && globalScene.gameMode.isWaveFinal(globalScene.currentBattle.waveIndex);
|
||||||
|
if (eventBossVariantEnabled) {
|
||||||
this.shiny = true;
|
this.shiny = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.shiny) {
|
if (this.shiny) {
|
||||||
this.variant = eventBossVariant ?? this.generateShinyVariant();
|
this.variant = eventBossVariantEnabled ? eventBossVariant : this.generateShinyVariant();
|
||||||
if (Overrides.ENEMY_VARIANT_OVERRIDE !== null) {
|
if (Overrides.ENEMY_VARIANT_OVERRIDE !== null) {
|
||||||
this.variant = Overrides.ENEMY_VARIANT_OVERRIDE;
|
this.variant = Overrides.ENEMY_VARIANT_OVERRIDE;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user