cleanup and check for enemy team in pvp
This commit is contained in:
@@ -195,6 +195,8 @@ class CombatCryps extends Phaser.GameObjects.Group {
|
||||
if (addKeys) this.scene.crypKeyHandler(crypObj, crypObj.iter);
|
||||
};
|
||||
allyTeam.cryps.forEach((cryp, i) => renderTeam(cryp, i, 0));
|
||||
|
||||
if (!enemyTeam) return false;
|
||||
enemyTeam.cryps.forEach((cryp, i) => renderTeam(cryp, i, 1));
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user