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