Moved new doubles conditional to be above overrides.

This commit is contained in:
frutescens 2024-11-13 22:51:05 -08:00
parent 7e1f2601d0
commit 1a15683983

View File

@ -1233,6 +1233,11 @@ export default class BattleScene extends SceneBase {
newDouble = !!double;
}
// Disable double battles on Endless/Endless Spliced Wave 50x boss battles (Introduced 1.2.0)
if (this.gameMode.isEndlessBoss(newWaveIndex)) {
newDouble = false;
}
if (Overrides.BATTLE_TYPE_OVERRIDE === "double") {
newDouble = true;
}
@ -1241,11 +1246,6 @@ export default class BattleScene extends SceneBase {
newDouble = false;
}
// Disable double battles on Endless/Endless Spliced Wave 50x boss battles (Introduced 1.2.0)
if (this.gameMode.isEndlessBoss(newWaveIndex)) {
newDouble = false;
}
const lastBattle = this.currentBattle;
const maxExpLevel = this.getMaxExpLevel();