Bullet explodes on impact when hitting target

This commit is contained in:
Avlas
2023-09-14 14:18:52 +02:00
committed by Gustas
parent a67e85e092
commit bdcf754d34

View File

@@ -371,7 +371,7 @@ namespace OpenRA.Mods.Common.Projectiles
if (checkTargetType && !Target.FromActor(victim).IsValidFor(firedBy)) if (checkTargetType && !Target.FromActor(victim).IsValidFor(firedBy))
continue; continue;
if (!info.ValidBounceBlockerRelationships.HasRelationship(firedBy.Owner.RelationshipWith(victim.Owner))) if (victim != Args.GuidedTarget.Actor && !info.ValidBounceBlockerRelationships.HasRelationship(firedBy.Owner.RelationshipWith(victim.Owner)))
continue; continue;
// If the impact position is within any actor's HitShape, we have a direct hit // If the impact position is within any actor's HitShape, we have a direct hit