fix angel check

This commit is contained in:
Daniel Bulant 2021-07-22 15:52:33 +02:00
parent fc4bdf079e
commit 4641abad87

View file

@ -438,7 +438,7 @@ export class GameScene extends Phaser.Scene {
this.canMove = true;
this.player.x = toX;
this.player.y = toY;
if(!fromWind && !this.winds[toX] && !this.winds[toX][toY]) this.checkAngel();
if(!fromWind && (!this.winds[toX] || !this.winds[toX][toY])) this.checkAngel();
});
}