fix: ricochet penetration reporation of external modules

This commit is contained in:
TrèsAbhi committed 2024-07-29 20:23:33 -05:00
1 parent 969c9a903e
commit b609fcbac7
1 file changed
+9
@@ -288,6 +288,15 @@ export function SpacedArmorSceneComponent({
}
}
if (
!allowRicochet &&
!noDuplicateIntersections.some((intersection) => {
intersection.object.userData.type === ArmorType.Core;
})
) {
return null;
}
let remainingPenetration = remainingPenetrationInput ?? penetration;
let index = 0;
for (const intersection of noDuplicateIntersections) {