修追踪弹没目标

This commit is contained in:
2025-08-29 22:20:09 +08:00
parent 00fbc2b96c
commit e058558818
4 changed files with 12 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ namespace WulaFallenEmpire
protected override void Impact(Thing hitThing, bool blockedByShield = false)
{
bool flag = blockedByShield || ExplosiveDef.explosionDelay == 0; // Use ExplosiveDef for explosionDelay
bool flag = hitThing == null || blockedByShield || ExplosiveDef.explosionDelay == 0; // Use ExplosiveDef for explosionDelay
if (flag)
{
this.Explode();