From 02146b78c8aa316602bc6a517a29574aa6498add Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Thu, 12 Dec 2024 13:55:59 +0100 Subject: [PATCH] Add notifying for everyone --- Heimdall.lua | 2 ++ Spotter.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Heimdall.lua b/Heimdall.lua index f1f79a7..caab483 100644 --- a/Heimdall.lua +++ b/Heimdall.lua @@ -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, diff --git a/Spotter.lua b/Spotter.lua index 4a1a747..cf9059b 100644 --- a/Spotter.lua +++ b/Spotter.lua @@ -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