From eea8db7a06aed50c005db35ad55ece026f7a3643 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Tue, 14 Oct 2025 19:51:58 -0700 Subject: [PATCH] delete warship when player is afk --- src/core/execution/WarshipExecution.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/execution/WarshipExecution.ts b/src/core/execution/WarshipExecution.ts index f573a8a47..67cb17aef 100644 --- a/src/core/execution/WarshipExecution.ts +++ b/src/core/execution/WarshipExecution.ts @@ -55,6 +55,11 @@ export class WarshipExecution implements Execution { this.warship.delete(); return; } + if (this.warship.owner().isDisconnected()) { + this.warship.delete(); + return; + } + const hasPort = this.warship.owner().unitCount(UnitType.Port) > 0; if (hasPort) { this.warship.modifyHealth(1);