From 770420a5b2d95fb945f9b5400a7407da74a62133 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Mon, 13 Jan 2025 10:30:49 +0100 Subject: [PATCH] ...actually make it work, idiot --- Heimdall.toc | 2 +- Heimdall.zip | 4 ++-- Modules/Commander.lua | 3 +-- Modules/Macroer.lua | 4 ++++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Heimdall.toc b/Heimdall.toc index 7314b24..9bf8cf7 100644 --- a/Heimdall.toc +++ b/Heimdall.toc @@ -1,6 +1,6 @@ ## Interface: 70300 ## Title: Heimdall -## Version: 3.4.0 +## Version: 3.4.1 ## Notes: Watches over areas and alerts when hostiles spotted ## Author: Cyka ## SavedVariables: Heimdall_Data diff --git a/Heimdall.zip b/Heimdall.zip index 5d5d16b..d38bc0d 100644 --- a/Heimdall.zip +++ b/Heimdall.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ce715cbaf623dd9f54ad71e11a5dc514a468ee7bbe14764505dbe2b5c276b62a -size 985963 +oid sha256:15c42c1ca300fa9233b953a6d69330d6d168ac1067fc7d4660079fbf43b3efc8 +size 985983 diff --git a/Modules/Commander.lua b/Modules/Commander.lua index 4c2ab03..f9682dc 100644 --- a/Modules/Commander.lua +++ b/Modules/Commander.lua @@ -232,7 +232,6 @@ function shared.Commander.Init() seenAt = GetTime(), hostile = true } - shared.dumpTable(shared.stinkyTracker.stinkies) end return {} end @@ -289,7 +288,7 @@ function shared.Commander.Init() or (command.commanderOnly and sender == Heimdall_Data.config.commander.commander)) then if msg:match(command.keywordRe) then - local messages = command.callback({ strsplit(" ", msg) }) + local messages = command.callback({ strsplit(",", msg) }) if Heimdall_Data.config.commander.debug then print(string.format("[%s] Messages to send: %s", ModuleName, strjoin(", ", unpack(messages)))) end diff --git a/Modules/Macroer.lua b/Modules/Macroer.lua index ee12599..f0d3071 100644 --- a/Modules/Macroer.lua +++ b/Modules/Macroer.lua @@ -71,6 +71,10 @@ function shared.Macroer.Init() return aPriority > bPriority end) + if Heimdall_Data.config.macroer.debug then + print(string.format("[%s] Sorted stinkies: %d", ModuleName, #sortedStinkies)) + shared.dumpTable(sortedStinkies) + end local lines = { "/targetenemy" } for _, stinky in pairs(sortedStinkies) do if stinky.seenAt > GetTime() - 600 then