Skip to content

Commit

Permalink
Bullet explodes on impact when hitting target
Browse files Browse the repository at this point in the history
  • Loading branch information
Avlas99 authored and PunkPun committed Sep 14, 2023
1 parent a67e85e commit bdcf754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Projectiles/Bullet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ bool AnyValidTargetsInRadius(World world, WPos pos, WDist radius, Actor firedBy,
if (checkTargetType && !Target.FromActor(victim).IsValidFor(firedBy))
continue;

if (!info.ValidBounceBlockerRelationships.HasRelationship(firedBy.Owner.RelationshipWith(victim.Owner)))
if (victim != Args.GuidedTarget.Actor && !info.ValidBounceBlockerRelationships.HasRelationship(firedBy.Owner.RelationshipWith(victim.Owner)))
continue;

// If the impact position is within any actor's HitShape, we have a direct hit
Expand Down

0 comments on commit bdcf754

Please sign in to comment.