Skip to content

Commit

Permalink
Update for 10.0.0.5
Browse files Browse the repository at this point in the history
Fixed obsolete isDressableItem
  • Loading branch information
fuba82 committed Jan 28, 2023
1 parent 545b215 commit 3cb4990
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions WardrobeTools/WardrobeTools.toc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## Interface: 100002
## Interface: 100005
## Title: WardrobeTools
## Notes: A simple addon to streamline transmog/appearance collection.
## SavedVariables: WardrobeToolsADB
## SavedVariablesPerCharacter: WardrobeToolsCDB
## Version: 1.0.1
## Version: 1.0.2

## OptionalDeps: sUI
## X-SezzADB: WardrobeToolsADB
Expand Down
7 changes: 5 additions & 2 deletions WardrobeTools/wardrobe/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ if (addonName == "WardrobeTools" and SezzUI) then return; end
local strmatch, tonumber, select = string.match, tonumber, select;

-- WoW API/Constants
local IsDressableItem, GetItemInfo = IsDressableItem, GetItemInfo;
local TRANSMOGRIFY_TOOLTIP_APPEARANCE_UNKNOWN, TRANSMOGRIFY_TOOLTIP_APPEARANCE_KNOWN, TRANSMOGRIFY_TOOLTIP_ITEM_UNKNOWN_APPEARANCE_KNOWN = TRANSMOGRIFY_TOOLTIP_APPEARANCE_UNKNOWN, TRANSMOGRIFY_TOOLTIP_APPEARANCE_KNOWN, TRANSMOGRIFY_TOOLTIP_ITEM_UNKNOWN_APPEARANCE_KNOWN;
local IsDressableItem = IsDressableItem or C_Item.IsDressableItemByID
local GetItemInfo = GetItemInfo;
local TRANSMOGRIFY_TOOLTIP_APPEARANCE_UNKNOWN = TRANSMOGRIFY_TOOLTIP_APPEARANCE_UNKNOWN
local TRANSMOGRIFY_TOOLTIP_APPEARANCE_KNOWN = TRANSMOGRIFY_TOOLTIP_APPEARANCE_KNOWN
local TRANSMOGRIFY_TOOLTIP_ITEM_UNKNOWN_APPEARANCE_KNOWN = TRANSMOGRIFY_TOOLTIP_ITEM_UNKNOWN_APPEARANCE_KNOWN
-- Armor
local LE_ITEM_CLASS_ARMOR = LE_ITEM_CLASS_ARMOR or Enum.ItemClass.Armor or 4
local LE_ITEM_ARMOR_CLOTH = LE_ITEM_ARMOR_CLOTH or Enum.ItemArmorSubclass.Cloth or 1
Expand Down

0 comments on commit 3cb4990

Please sign in to comment.