Skip to content

Commit

Permalink
Fixed dual wield detection not working
Browse files Browse the repository at this point in the history
Classes which cannot dual wield should no longer see (by default) orange text on offhand weapons that they would be able to equip if only the weapon was for main hand.
  • Loading branch information
Anonomit committed May 15, 2022
1 parent 5de7333 commit 1e4e43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ function Data:OnInitialize(L)


function Data:IsUsable(itemType, itemSubType, invType)
return USABLE_EQUIPMENT[self.CLASS][itemType] and USABLE_EQUIPMENT[self.CLASS][itemType][itemSubType] and not UNUSABLE_INVTYPES[invType] and true or false
return USABLE_EQUIPMENT[self.CLASS][itemType] and USABLE_EQUIPMENT[self.CLASS][itemType][itemSubType] and not UNUSABLE_INVTYPES[self.CLASS][invType] and true or false
end

function Data:GetRedText(itemType, itemSubType, invType)
Expand Down

0 comments on commit 1e4e43e

Please sign in to comment.