mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-18 02:07:44 +00:00
Remove screen inversion if move animations are off
This commit is contained in:
parent
9e3b5c636c
commit
5234c8e92e
@ -3580,7 +3580,9 @@ export class DamagePhase extends PokemonPhase {
|
|||||||
super.start();
|
super.start();
|
||||||
|
|
||||||
if (this.damageResult === HitResult.ONE_HIT_KO) {
|
if (this.damageResult === HitResult.ONE_HIT_KO) {
|
||||||
|
if (this.scene.moveAnimations) {
|
||||||
this.scene.toggleInvert(true);
|
this.scene.toggleInvert(true);
|
||||||
|
}
|
||||||
this.scene.time.delayedCall(Utils.fixedInt(1000), () => {
|
this.scene.time.delayedCall(Utils.fixedInt(1000), () => {
|
||||||
this.scene.toggleInvert(false);
|
this.scene.toggleInvert(false);
|
||||||
this.applyDamage();
|
this.applyDamage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user