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

View File

@ -3616,7 +3616,9 @@ export class DamagePhase extends PokemonPhase {
super.start(); super.start();
if (this.damageResult === HitResult.ONE_HIT_KO) { 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.time.delayedCall(Utils.fixedInt(1000), () => {
this.scene.toggleInvert(false); this.scene.toggleInvert(false);
this.applyDamage(); this.applyDamage();