mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 22:09:27 +02:00
Removed unnecessary !
This commit is contained in:
parent
b7fd719de8
commit
8cd6b39bac
@ -222,9 +222,9 @@ export class EncounterPhase extends BattlePhase {
|
||||
if (enemyPokemon) {
|
||||
const bossMBH = this.scene.findModifier(m => m instanceof TurnHeldItemTransferModifier && m.pokemonId === enemyPokemon.id, false) as TurnHeldItemTransferModifier;
|
||||
if (bossMBH) {
|
||||
this.scene.removeModifier(bossMBH!);
|
||||
this.scene.removeModifier(bossMBH);
|
||||
bossMBH?.setTransferrableFalse();
|
||||
this.scene.addEnemyModifier(bossMBH!);
|
||||
this.scene.addEnemyModifier(bossMBH);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user