Remove screen inversion if move animations are off

This commit is contained in:
Temps Ray 2024-06-22 10:44:26 -04:00
parent 9e3b5c636c
commit 5234c8e92e
1 changed files with 3 additions and 1 deletions

View File

@ -3580,7 +3580,9 @@ export class DamagePhase extends PokemonPhase {
super.start();
if (this.damageResult === HitResult.ONE_HIT_KO) {
this.scene.toggleInvert(true);
if (this.scene.moveAnimations) {
this.scene.toggleInvert(true);
}
this.scene.time.delayedCall(Utils.fixedInt(1000), () => {
this.scene.toggleInvert(false);
this.applyDamage();