mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-05 17:05:12 +00:00
don't alert on delete trade ship or shell
This commit is contained in:
@@ -25,7 +25,7 @@ export class ShellExecution implements Execution {
|
||||
return
|
||||
}
|
||||
if (!this.target.isActive()) {
|
||||
this.shell.delete()
|
||||
this.shell.delete(false)
|
||||
this.active = false
|
||||
return
|
||||
}
|
||||
@@ -35,7 +35,7 @@ export class ShellExecution implements Execution {
|
||||
case PathFindResultType.Completed:
|
||||
this.active = false
|
||||
this.target.delete()
|
||||
this.shell.delete()
|
||||
this.shell.delete(false)
|
||||
return
|
||||
case PathFindResultType.NextTile:
|
||||
this.shell.move(result.tile)
|
||||
@@ -45,7 +45,7 @@ export class ShellExecution implements Execution {
|
||||
case PathFindResultType.PathNotFound:
|
||||
console.log(`Shell ${this.shell} could not find target`)
|
||||
this.active = false
|
||||
this.shell.delete()
|
||||
this.shell.delete(false)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user