shell does not attack friendly units

This commit is contained in:
Evan
2024-12-27 10:02:00 -08:00
parent f12fd23e2b
commit c9c10ccfa8
+1 -1
View File
@@ -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