From bdcf754d34b09d5df02db207104cc3cdab4234c5 Mon Sep 17 00:00:00 2001 From: Avlas Date: Thu, 14 Sep 2023 14:18:52 +0200 Subject: [PATCH] Bullet explodes on impact when hitting target --- OpenRA.Mods.Common/Projectiles/Bullet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Projectiles/Bullet.cs b/OpenRA.Mods.Common/Projectiles/Bullet.cs index ccc1903ef3..d5ef5d4c51 100644 --- a/OpenRA.Mods.Common/Projectiles/Bullet.cs +++ b/OpenRA.Mods.Common/Projectiles/Bullet.cs @@ -371,7 +371,7 @@ namespace OpenRA.Mods.Common.Projectiles 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