1.1.9

esorochinskiy [06-16-23 - 17:36]
1.1.9
Filename
WellEater.lua
WellEater.txt
diff --git a/WellEater.lua b/WellEater.lua
index 46fa44e..8d35a5b 100644
--- a/WellEater.lua
+++ b/WellEater.lua
@@ -2,7 +2,7 @@ WellEater = WellEater or {}
 WellEater.WELLEATER_SAVED_VERSION = 1
 WellEater.AddonName = "WellEater"
 WellEater.DisplayName = "|cFFFFFFWell |c0099FFEater|r"
-WellEater.Version = "1.1.9"
+WellEater.Version = "1.2.0"
 WellEater.Author = "|c5EFFF5esorochinskiy|r"
 local NAMESPACE = {}
 NAMESPACE.settingsDefaults = {
@@ -382,7 +382,7 @@ local function checkEquippedWeapon()

     for testSlot, isToCheck in pairs(locSettings.slots) do
         if isToCheck and HasItemInSlot(BAG_WORN, testSlot)
-                and not IsLockedWeaponSlot(testSlot) then
+                and IsItemChargeable(BAG_WORN, testSlot) then
             local linkId = GetItemLink(BAG_WORN, testSlot)
             local numCharges = GetItemLinkNumEnchantCharges(linkId)
             --df("numCharges = %s", numCharges)
diff --git a/WellEater.txt b/WellEater.txt
index 1adafa6..e942895 100644
--- a/WellEater.txt
+++ b/WellEater.txt
@@ -31,7 +31,7 @@
 ## Author: |c5EFFF5esorochinskiy|r
 ## APIVersion: 101033 101034 101035 101036
 ## Description: Auto eat your preferred meals provided by your inventory after food or drink buff expiration. Provides weapon autoload and armor autorepair
-## Version: 1.1.9
+## Version: 1.2.0
 ## SavedVariables: WellEater_Settings
 ## DependsOn: LibAddonMenu-2.0>=28