From c9c10ccfa8f84f23477c0b0c4374a4e6e2f109c5 Mon Sep 17 00:00:00 2001 From: Evan Date: Fri, 27 Dec 2024 10:02:00 -0800 Subject: [PATCH] shell does not attack friendly units --- src/core/execution/ShellExecution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/execution/ShellExecution.ts b/src/core/execution/ShellExecution.ts index cad5b2f6b..75e75c1ad 100644 --- a/src/core/execution/ShellExecution.ts +++ b/src/core/execution/ShellExecution.ts @@ -25,7 +25,7 @@ export class ShellExecution implements Execution { this.active = false return } - if (!this.target.isActive() || !this.ownerUnit.isActive()) { + if (!this.target.isActive() || !this.ownerUnit.isActive() || this.target.owner() == this.shell.owner()) { this.shell.delete(false) this.active = false return