mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 22:33:25 +00:00
don't display unit deleted message when tranpsort ship lands
This commit is contained in:
@@ -111,7 +111,7 @@ export class NukeExecution implements Execution {
|
||||
// .filter(b => euclideanDist(this.cell, b.tile().cell()) < this.magnitude + 50)
|
||||
// .forEach(b => b.delete())
|
||||
this.active = false
|
||||
this.nuke.delete()
|
||||
this.nuke.delete(false)
|
||||
}
|
||||
|
||||
owner(): MutablePlayer {
|
||||
|
||||
@@ -102,7 +102,7 @@ export class TransportShipExecution implements Execution {
|
||||
case PathFindResultType.Completed:
|
||||
if (this.dst.owner() == this.attacker) {
|
||||
this.attacker.addTroops(this.troops)
|
||||
this.boat.delete()
|
||||
this.boat.delete(false)
|
||||
this.active = false
|
||||
return
|
||||
}
|
||||
@@ -114,7 +114,7 @@ export class TransportShipExecution implements Execution {
|
||||
new AttackExecution(this.troops, this.attacker.id(), this.targetID, this.dst.cell(), null, false)
|
||||
)
|
||||
}
|
||||
this.boat.delete()
|
||||
this.boat.delete(false)
|
||||
this.active = false
|
||||
return
|
||||
case PathFindResultType.NextTile:
|
||||
@@ -125,7 +125,7 @@ export class TransportShipExecution implements Execution {
|
||||
case PathFindResultType.PathNotFound:
|
||||
// TODO: add to poisoned port list
|
||||
console.warn(`path not found tot dst`)
|
||||
this.boat.delete()
|
||||
this.boat.delete(false)
|
||||
this.active = false
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user