Skip to content

Commit 48d68c7

Browse files
committed
- Prevent units from obtaining SensorInfo when sensors are offline
1 parent 0b33f62 commit 48d68c7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

LowVisibility/LowVisibility/Helper/SensorLockHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ private static bool HasNarcBeaconDetection(ICombatant target, EWState sourceStat
235235
private static SensorScanType CalculateSensorInfoLevel(AbstractActor source, ICombatant target) {
236236
Mod.Log.Trace?.Write($"Calculating SensorInfo from source: ({CombatantUtils.Label(source)}) to target: ({CombatantUtils.Label(target)})");
237237

238+
if (source.StatCollection.ContainsStatistic(ModStats.DisableSensors)) return SensorScanType.NoInfo;
239+
238240
// Determine modified check against target
239241
EWState sourceState = source.GetEWState();
240242

0 commit comments

Comments
 (0)