diff options
Diffstat (limited to 'crates/fparkan-runtime/src/unit_combat.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/unit_combat.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/fparkan-runtime/src/unit_combat.rs b/crates/fparkan-runtime/src/unit_combat.rs index c7d807cc..03bf5c8d 100644 --- a/crates/fparkan-runtime/src/unit_combat.rs +++ b/crates/fparkan-runtime/src/unit_combat.rs @@ -460,7 +460,9 @@ impl AutoDemoCombat { travelled = Some(clip_segment(segment, fraction)); Ok(ground.is_some() || contact.is_some()) }); - if let Some(hit) = contact { + if let Some(hit) = + contact.filter(|hit| hit.node != Some(crate::ProjectileNode::CaptureBarrier)) + { let data = &self.projectiles[flight.projectile]; // Capture the target before applying damage, which may remove it. let target = CombatObject::read(&engine.world, hit.handle); |
