Fix hitbox bug
This commit is contained in:
parent
f7daa96550
commit
c90d7afc9d
@ -72,10 +72,9 @@ class CombatHitBox extends Phaser.Scene {
|
|||||||
this.game.events.emit('SEND_SKILL', game.id, activeSkill.cryp.id, c.id, activeSkill.skill.skill);
|
this.game.events.emit('SEND_SKILL', game.id, activeSkill.cryp.id, c.id, activeSkill.skill.skill);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const crypSpawn = group.children.entries.find(s => s.cryp.id === c.id);
|
const crypSpawn = group.children.entries.find(s => s.cryp.id === c.id);
|
||||||
const team = c.account === account.id ? 0 : 1;
|
const team = c.account === account.id ? 0 : 1;
|
||||||
this.add.existing(new CrypHitBox(this, crypSpawn.iter, team, cback));
|
if (crypSpawn) this.add.existing(new CrypHitBox(this, crypSpawn.iter, team, cback));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.scene.moveBelow('Combat');
|
this.scene.moveBelow('Combat');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user