Merge branch 'master' of ssh://cryps.gg:40022/~/cryps
This commit is contained in:
commit
cfcbe1c7e1
@ -153,10 +153,12 @@ class CombatCryps extends Phaser.Scene {
|
||||
this.drawCryps(game);
|
||||
this.registry.events.on('changedata', this.updateData, this);
|
||||
this.registry.set('crypStatusUpdate', false);
|
||||
this.teams = game.teams.length;
|
||||
}
|
||||
|
||||
updateData(parent, key, data) {
|
||||
if (key === 'game' && data) {
|
||||
if (data.teams.length !== this.teams) this.scene.restart(data);
|
||||
const isAnimating = this.phase === 'animating';
|
||||
this.game = data;
|
||||
if (isAnimating) return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user