mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-31 13:17:21 +00:00
[Bug][Beta] Fix Pokemon info flyout being offset on switchout after double battle (#4260)
This commit is contained in:
parent
aecdcd34f5
commit
d8dbc471af
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user