Add notifying for everyone

This commit is contained in:
2024-12-12 13:55:59 +01:00
parent b8f97fb8a4
commit 02146b78c8
2 changed files with 3 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ if not Heimdall_Data then Heimdall_Data = {} end
---@class HeimdallSpotterConfig ---@class HeimdallSpotterConfig
---@field enabled boolean ---@field enabled boolean
---@field everyone boolean
---@field hostile boolean ---@field hostile boolean
---@field alliance boolean ---@field alliance boolean
---@field stinky boolean ---@field stinky boolean
@@ -43,6 +44,7 @@ data.messenger = {
data.config = { data.config = {
spotter = { spotter = {
enabled = true, enabled = true,
everyone = false,
hostile = true, hostile = true,
alliance = false, alliance = false,
stinky = false, stinky = false,

View File

@@ -34,7 +34,7 @@ local function ShouldNotify(unit, name, faction, hostile)
if data.config.spotter.hostile then if data.config.spotter.hostile then
if hostile then return true end if hostile then return true end
end end
return false return data.config.spotter.everyone
end end
---@param unit string ---@param unit string