mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-25 11:36:57 +00:00
reimplement defense posts
This commit is contained in:
@@ -101,6 +101,9 @@ export class UnitImpl implements Unit {
|
||||
this._owner._units = this._owner._units.filter((b) => b != this);
|
||||
this._active = false;
|
||||
this.mg.addUpdate(this.toUpdate());
|
||||
if (this.type() == UnitType.DefensePost) {
|
||||
this.mg.removeDefensePost(this);
|
||||
}
|
||||
if (displayMessage) {
|
||||
this.mg.displayMessage(
|
||||
`Your ${this.type()} was destroyed`,
|
||||
|
||||
Reference in New Issue
Block a user