Fixed #10042
This commit is contained in:
@@ -59,6 +59,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
|
|
||||||
@Import float x, y, health, maxHealth;
|
@Import float x, y, health, maxHealth;
|
||||||
@Import Team team;
|
@Import Team team;
|
||||||
|
@Import boolean dead;
|
||||||
|
|
||||||
transient Tile tile;
|
transient Tile tile;
|
||||||
transient Block block;
|
transient Block block;
|
||||||
@@ -2081,6 +2082,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void killed(){
|
public void killed(){
|
||||||
|
dead = true;
|
||||||
Events.fire(new BlockDestroyEvent(tile));
|
Events.fire(new BlockDestroyEvent(tile));
|
||||||
block.destroySound.at(tile);
|
block.destroySound.at(tile);
|
||||||
onDestroyed();
|
onDestroyed();
|
||||||
|
|||||||
Reference in New Issue
Block a user