mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 12:52:20 +02:00
[Bug] Fix doubles trainers not initializing properly
This commit is contained in:
parent
75400a39ed
commit
9077a86303
@ -1394,9 +1394,9 @@ export default class BattleScene extends SceneBase {
|
|||||||
if (double === undefined && newWaveIndex > 1) {
|
if (double === undefined && newWaveIndex > 1) {
|
||||||
if (newBattleType === BattleType.WILD && !this.gameMode.isWaveFinal(newWaveIndex)) {
|
if (newBattleType === BattleType.WILD && !this.gameMode.isWaveFinal(newWaveIndex)) {
|
||||||
newDouble = !randSeedInt(this.getDoubleBattleChance(newWaveIndex, playerField));
|
newDouble = !randSeedInt(this.getDoubleBattleChance(newWaveIndex, playerField));
|
||||||
|
} else if (newBattleType === BattleType.TRAINER) {
|
||||||
|
newDouble = newTrainer?.variant === TrainerVariant.DOUBLE;
|
||||||
}
|
}
|
||||||
} else if (double === undefined && newBattleType === BattleType.TRAINER) {
|
|
||||||
newDouble = newTrainer?.variant === TrainerVariant.DOUBLE;
|
|
||||||
} else if (!battleConfig) {
|
} else if (!battleConfig) {
|
||||||
newDouble = !!double;
|
newDouble = !!double;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user