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

View File

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