mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-23 00:32:28 +02:00
Fix incorrect resetSprite
timing
This commit is contained in:
parent
1ed1380781
commit
67249b75e2
@ -3584,6 +3584,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
* info container.
|
||||
*/
|
||||
leaveField(clearEffects: boolean = true, hideInfo: boolean = true) {
|
||||
this.resetSprite();
|
||||
this.resetTurnData();
|
||||
if (clearEffects) {
|
||||
this.resetSummonData();
|
||||
@ -3592,7 +3593,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
if (hideInfo) {
|
||||
this.hideInfo();
|
||||
}
|
||||
this.resetSprite();
|
||||
this.scene.field.remove(this);
|
||||
this.scene.triggerPokemonFormChange(this, SpeciesFormChangeActiveTrigger, true);
|
||||
}
|
||||
|
@ -16,9 +16,9 @@ export class ReturnPhase extends SwitchSummonPhase {
|
||||
onEnd(): void {
|
||||
const pokemon = this.getPokemon();
|
||||
|
||||
pokemon.resetSprite();
|
||||
pokemon.resetTurnData();
|
||||
pokemon.resetSummonData();
|
||||
pokemon.resetSprite();
|
||||
|
||||
this.scene.updateFieldScale();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user