Skip to content

Commit

Permalink
[Bug][Beta] Fix Pokemon info flyout being offset on switchout after d…
Browse files Browse the repository at this point in the history
…ouble battle (#4260)
  • Loading branch information
innerthunder authored Sep 14, 2024
1 parent aecdcd3 commit d8dbc47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/field/pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
// Resetting properties should not be shown on the field
this.setVisible(false);

// Reset field position
this.setFieldPosition(FieldPosition.CENTER);
// Remove the offset from having a Substitute active
if (this.isOffsetBySubstitute()) {
this.x -= this.getSubstituteOffset()[0];
this.y -= this.getSubstituteOffset()[1];
Expand Down

0 comments on commit d8dbc47

Please sign in to comment.