Skip to content

Commit c706382

Browse files
authored
Merge pull request #155 from UchuServer/MechFix
Update TurretMech.cs
2 parents 5aecefb + 08948fd commit c706382

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Uchu.StandardScripts/AvantGardens/TurretMech.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,14 @@ public void MountTurret(GameObject gameObject)
4747
{
4848
await Task.Delay(20000);
4949

50-
await quickBuild.GetComponent<DestructibleComponent>().SmashAsync(quickBuild, lootOwner);
50+
Zone.BroadcastMessage(new DieMessage
51+
{
52+
Associate = quickBuild,
53+
DeathType = "",
54+
Killer = smasher,
55+
SpawnLoot = false,
56+
LootOwner = quickBuild
57+
});
5158

5259
Destroy(quickBuild);
5360
});

0 commit comments

Comments
 (0)