From 15df5dacd7fe47cd5b73799e53bb5cbc8ee9644d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Fri, 9 Oct 2020 23:47:26 -0700 Subject: [PATCH] Only log about dialogue if timer is inactive --- MWSE/mods/celediel/NoMoreFriendlyFire/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MWSE/mods/celediel/NoMoreFriendlyFire/main.lua b/MWSE/mods/celediel/NoMoreFriendlyFire/main.lua index 55d399f..7e5c6f7 100644 --- a/MWSE/mods/celediel/NoMoreFriendlyFire/main.lua +++ b/MWSE/mods/celediel/NoMoreFriendlyFire/main.lua @@ -92,9 +92,9 @@ eventFunctions.onInfoResponse = function(e) for _, item in pairs(followMatches) do if command:match(item) or dialogue:match(item) then - log("Found %s in dialogue, rebuilding followers", item) -- wait until game time restarts, and don't set multiple timers if not postDialogueTimer or postDialogueTimer.state ~= timer.active then + log("Found %s in dialogue, rebuilding followers", item) postDialogueTimer = timer.start({ type = timer.simulate, duration = 0.5,