Fix Baton Pass not working

This commit is contained in:
Flashfyre committed 2024-04-25 20:52:52 -04:00
1 parent f99afa228f
commit 728512cf7d
3 files changed
+4 -5

No files matched your search

+2 -1
View File
@@ -2316,7 +2316,8 @@ export class PlayerPokemon extends Pokemon {
switchOut(batonPass: boolean, removeFromField: boolean = false): Promise<void> {
return new Promise(resolve => {
this.resetTurnData();
this.resetSummonData();
if (!batonPass)
this.resetSummonData();
this.hideInfo();
this.setVisible(false);