Skip to content

Commit

Permalink
Properly fixed off-hands and shields not appearing in the Weapons cat…
Browse files Browse the repository at this point in the history
…egory
  • Loading branch information
Slackluster committed Jun 15, 2024
1 parent 0b5f00e commit 485fe28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1402,15 +1402,15 @@ function event:CHAT_MSG_LOOT(text, playerName, languageName, channelName, player
local itemCategory = ""
local equippable = false
-- Check if the item can and should be equipped (armor -> class)
if (itemType == "4.0" and equipSlot ~= "INVTYPE_HOLDABLE") or itemType == "4.1" or itemType == "4.2" or itemType == "4.3" or itemType == "4.4" then
if (itemType == "4.0" and itemEquipLoc ~= "INVTYPE_HOLDABLE") or itemType == "4.1" or itemType == "4.2" or itemType == "4.3" or itemType == "4.4" then
itemCategory = "armor"
if itemType == app.Type[armorClass] or itemType == app.Type["General"] then
equippable = true
end
end
-- Check if a weapon can be equipped
for k, v in pairs(app.Type) do
if v == itemType and not ((itemType == "4.0" and equipSlot ~= "INVTYPE_HOLDABLE") or itemType == "4.1" or itemType == "4.2" or itemType == "4.3" or itemType == "4.4") then
if v == itemType and not ((itemType == "4.0" and itemEquipLoc ~= "INVTYPE_HOLDABLE") or itemType == "4.1" or itemType == "4.2" or itemType == "4.3" or itemType == "4.4") then
itemCategory = "weapon"
for _, v2 in pairs(app.Weapon[k]) do
-- Check if the item can and should be equipped (weapon -> spec)
Expand Down

0 comments on commit 485fe28

Please sign in to comment.