fixed attackLogic bug

This commit is contained in:
evanpelle
2024-09-06 20:11:49 -07:00
parent 4caaaea140
commit 75adcd2989
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ export class ClientGame {
if (bordersWithDists.length > 0) {
borderTileClosest = borderWithDists[0].dist
}
if (enemyShoreDists.length > 0 && bordersOcean) {
if (enemyShoreDists.length > 0) {
enemyShoreClosest = enemyShoreDists[0].dist
}
if (enemyShoreClosest < borderTileClosest / 6) {