Require player visibility when resolving runtime target candidates

This commit is contained in:
2026-04-25 18:04:29 +02:00
parent 0e4fbb2480
commit 14c045546c

View File

@@ -5928,7 +5928,8 @@ export class RuntimeHost {
const replacementTarget =
this.resolveRuntimeTargetCandidateNearestScreenCenter({
exclude: this.activeRuntimeTargetReference,
maxDistanceFromPlayer: TARGETING_AUTO_RETARGET_SAFE_DISTANCE
maxDistanceFromPlayer: TARGETING_AUTO_RETARGET_SAFE_DISTANCE,
requirePlayerVisibility: true
});
if (replacementTarget !== null) {