new release

Leandro Silva [04-01-20 - 17:18]
new release
Filename
LeoDolmenRunner.lua
LeoDolmenRunner.txt
Runner.lua
diff --git a/LeoDolmenRunner.lua b/LeoDolmenRunner.lua
index dd137ed..fe2e437 100644
--- a/LeoDolmenRunner.lua
+++ b/LeoDolmenRunner.lua
@@ -1,7 +1,7 @@
 LeoDolmenRunner = {
     name = "LeoDolmenRunner",
     displayName = "Leo's Dolmen Runner",
-    version = "1.1.0",
+    version = "1.1.1",
     chatPrefix = "|c39B027LeoDolmenRunner|r: ",
     debug = false,
     defaults = {
diff --git a/LeoDolmenRunner.txt b/LeoDolmenRunner.txt
index 7d1cde2..943f9e8 100644
--- a/LeoDolmenRunner.txt
+++ b/LeoDolmenRunner.txt
@@ -1,7 +1,7 @@
 ## Title: Leo's Dolmen Runner
 ## APIVersion: 100029 100030
-## Version: 1.1.0
-## AddOnVersion: 110
+## Version: 1.1.1
+## AddOnVersion: 111
 ## Author: |c39B027@LeandroSilva|r
 ## SavedVariables: LeoDolmenRunner_Data
 ## DependsOn: LibFeedback LibAddonMenu-2.0 LibSavedVars
diff --git a/Runner.lua b/Runner.lua
index 2890d7f..4f63dd2 100644
--- a/Runner.lua
+++ b/Runner.lua
@@ -239,13 +239,13 @@ function Runner:OnCombatState(inCombat)
             end
         end

-        if not isBuffActive(Runner.activeBuff) then
+        if Runner.activeBuff > 0 and not isBuffActive(Runner.activeBuff) then
             LeoDolmenRunner.log("Reapplying " .. GetCollectibleInfo(Runner.activeBuff))
             UseCollectible(Runner.activeBuff)
         end
     end

-    if LeoDolmenRunner.settings.runner.autoDismiss then
+    if inCombat and LeoDolmenRunner.settings.runner.autoDismiss then
         for _, id in pairs(assistants) do
             if IsCollectibleActive(id) then
                 LeoDolmenRunner.log("Dismissing " .. GetCollectibleInfo(id))