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
View File
@@ -64,6 +64,7 @@ export class AttackExecution implements Execution {
badTiles++
continue
}
// TODO: move this to configs
this._owner.conquer(tileToConquer)
if (this.target.isPlayer()) {
this.troops -= Math.max(this.target.troops() / this._owner.troops(), 1)