fix boat bug

This commit is contained in:
evanpelle
2024-08-12 17:05:02 -07:00
parent a4799a3c21
commit fc562533e1
5 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ export class ClientGame {
if (tile.owner() != this.myPlayer && tile.terrain() == TerrainTypes.Land) {
if (this.myPlayer.sharesBorderWith(tile.owner())) {
this.sendAttackIntent(targetID, cell, this.config.player().attackAmount(this.myPlayer, owner))
} else {
} else if (owner.isPlayer()) {
// TODO verify on ocean
console.log('going to send boat')
this.sendBoatAttackIntent(targetID, cell, this.config.player().boatAttackAmount(this.myPlayer, owner))