Merge pull request #2516 from Tempo-anon/ohkoInvertColor

[Accessbility] Remove screen inversion if move animations are off
This commit is contained in:
Frederico Santos 2024-07-07 01:23:41 +01:00 committed by GitHub
commit 4cd1653186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -3616,7 +3616,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();