[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
|
// Resetting properties should not be shown on the field
|
||||||
this.setVisible(false);
|
this.setVisible(false);
|
||||||
|
|
||||||
// Reset field position
|
// Remove the offset from having a Substitute active
|
||||||
this.setFieldPosition(FieldPosition.CENTER);
|
|
||||||
if (this.isOffsetBySubstitute()) {
|
if (this.isOffsetBySubstitute()) {
|
||||||
this.x -= this.getSubstituteOffset()[0];
|
this.x -= this.getSubstituteOffset()[0];
|
||||||
this.y -= this.getSubstituteOffset()[1];
|
this.y -= this.getSubstituteOffset()[1];
|
||||||
|
|
Loading…
Reference in New Issue