Do not report spotter for agents

This commit is contained in:
2025-01-05 22:30:09 +01:00
parent 7f9476236d
commit 3ee90fb767

View File

@@ -27,6 +27,7 @@ function shared.Spotter.Init()
---@return boolean ---@return boolean
---@return string? error ---@return string? error
local function ShouldNotify(unit, name, faction, hostile) local function ShouldNotify(unit, name, faction, hostile)
if Heimdall_Data.config.agents[name] then return false end
if Heimdall_Data.config.spotter.stinky then if Heimdall_Data.config.spotter.stinky then
if Heimdall_Data.config.stinkies[name] then return true end if Heimdall_Data.config.stinkies[name] then return true end
end end