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
---@field enabled boolean
---@field everyone boolean
---@field hostile boolean
---@field alliance boolean
---@field stinky boolean
@@ -43,6 +44,7 @@ data.messenger = {
data.config = {
spotter = {
enabled = true,
everyone = false,
hostile = true,
alliance = false,
stinky = false,

View File

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