delete warship when player is afk

This commit is contained in:
evanpelle
2025-10-14 19:51:58 -07:00
parent 9ab35a0436
commit eea8db7a06
+5
View File
@@ -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);