Skip to content

Commit

Permalink
Prevent projectiles from colliding with their guns (space-wizards#20439)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroJr authored Sep 23, 2023
1 parent 6feb66a commit a3b4401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Projectiles/SharedProjectileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private void Embed(EntityUid uid, EntityUid target, EmbeddableProjectileComponen

private void PreventCollision(EntityUid uid, ProjectileComponent component, ref PreventCollideEvent args)
{
if (component.IgnoreShooter && args.OtherEntity == component.Shooter)
if (component.IgnoreShooter && (args.OtherEntity == component.Shooter || args.OtherEntity == component.Weapon))
{
args.Cancelled = true;
}
Expand Down

0 comments on commit a3b4401

Please sign in to comment.