Add notifying for everyone
This commit is contained in:
@@ -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,
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user