Initial deletion seems good
This commit is contained in:
parent
872f05d2a7
commit
8da0f06385
|
@ -38,6 +38,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