Merge 86ae59f307
into 10e0f9f0de
This commit is contained in:
commit
7762db9474
|
@ -51,6 +51,11 @@ export class BattleEndPhase extends BattlePhase {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.scene.clearEnemyHeldItemModifiers();
|
this.scene.clearEnemyHeldItemModifiers();
|
||||||
|
try {
|
||||||
|
this.scene.getEnemyParty().forEach(p => p.destroy());
|
||||||
|
} catch {
|
||||||
|
console.log("Garbage collection failed.");
|
||||||
|
}
|
||||||
|
|
||||||
const lapsingModifiers = this.scene.findModifiers(m => m instanceof LapsingPersistentModifier || m instanceof LapsingPokemonHeldItemModifier) as (LapsingPersistentModifier | LapsingPokemonHeldItemModifier)[];
|
const lapsingModifiers = this.scene.findModifiers(m => m instanceof LapsingPersistentModifier || m instanceof LapsingPokemonHeldItemModifier) as (LapsingPersistentModifier | LapsingPokemonHeldItemModifier)[];
|
||||||
for (const m of lapsingModifiers) {
|
for (const m of lapsingModifiers) {
|
||||||
|
|
Loading…
Reference in New Issue