mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-01 15:40:23 +01:00
[Bug] Fix Clear terrains upon Trainer Battle (#2027)
* Clear terrains upon Trainer Battle * Adjusted comment
This commit is contained in:
parent
0c0de4103b
commit
4a399465d2
@ -1127,7 +1127,7 @@ export default class BattleScene extends SceneBase {
|
|||||||
this.arena.updatePoolsForTimeOfDay();
|
this.arena.updatePoolsForTimeOfDay();
|
||||||
}
|
}
|
||||||
if (resetArenaState) {
|
if (resetArenaState) {
|
||||||
this.arena.removeAllTags();
|
this.arena.resetArenaEffects();
|
||||||
playerField.forEach((_, p) => this.unshiftPhase(new ReturnPhase(this, p)));
|
playerField.forEach((_, p) => this.unshiftPhase(new ReturnPhase(this, p)));
|
||||||
|
|
||||||
for (const pokemon of this.getParty()) {
|
for (const pokemon of this.getParty()) {
|
||||||
|
@ -638,6 +638,12 @@ export class Arena {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Clears terrain and arena tags when entering new biome or trainer battle. */
|
||||||
|
resetArenaEffects(): void {
|
||||||
|
this.trySetTerrain(TerrainType.NONE, false, true);
|
||||||
|
this.removeAllTags();
|
||||||
|
}
|
||||||
|
|
||||||
preloadBgm(): void {
|
preloadBgm(): void {
|
||||||
this.scene.loadBgm(this.bgm);
|
this.scene.loadBgm(this.bgm);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user