mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 13:59:48 +00:00
shell does not attack friendly units
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user