mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
Merge pull request #2516 from Tempo-anon/ohkoInvertColor
[Accessbility] Remove screen inversion if move animations are off
This commit is contained in:
commit
4cd1653186
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user