Skip to content

Commit b50366f

Browse files
authored
Merge pull request #18 from nicokimmel/1.16.1
1.16.1
2 parents e4611c7 + 722e460 commit b50366f

3 files changed

+11
-10
lines changed

src/WizardsWardrobe.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WW.name = "WizardsWardrobe"
77
WW.simpleName = "Wizard's Wardrobe"
88
WW.displayName =
99
"|c18bed8W|c26c2d1i|c35c6c9z|c43cac2a|c52cebar|c60d1b3d|c6fd5ab'|c7dd9a4s|c8cdd9d |c9ae195W|ca8e58ea|cb7e986r|cc5ed7fd|cd4f077r|ce2f470o|cf1f868b|cfffc61e|r"
10-
WW.version = "1.16.0"
10+
WW.version = "1.16.1"
1111
WW.zones = {}
1212
WW.currentIndex = 0
1313

@@ -63,7 +63,7 @@ function WW.LoadSetup( zone, pageId, index, auto )
6363

6464
setup:ExecuteCode( setup, zone, pageId, index, auto )
6565
WW.currentIndex = index
66-
66+
WWV.SetupFailWorkaround()
6767
return true
6868
end
6969

@@ -371,7 +371,7 @@ function WW.MoveItems( itemTaskList )
371371
CallSecureProtected( "RequestMoveItem", item.sourceBag, item.sourceSlot, item.destBag, item.destSlot, 1 )
372372
end
373373
end
374-
WWV.SetupFailWorkaround()
374+
375375
WWQ.Push( itemTask, item.delay )
376376
end
377377
end

src/WizardsWardrobe.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Title: Wizard's Wardrobe
22
## Author: ownedbynico, |c268074JN_Slevin|r, |c00a313Ghostbane|r
3-
## Version: 1.16.0
3+
## Version: 1.16.1
44
## Description: Throw all your setups into the wardrobe and let the wizard equip them exactly when you need it.
55
## APIVersion: 101040
66
## DependsOn: LibAddonMenu-2.0 LibChatMessage>=105 LibDebugLogger LibAsync

src/WizardsWardrobeSetupValidation.lua

+7-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ local WORKAROUND_FOUR = 4
2121

2222

2323
function WWV.CompareItemLinks( linkEquipped, linkSaved, uniqueIdEquipped, uniqueIdSaved )
24-
local traitEquipped = GetItemLinkTraitInfo( linkEquipped )
25-
local weaponTypeEquipped = GetItemLinkWeaponType( linkEquipped )
26-
local weaponTypeSaved = GetItemLinkWeaponType( linkSaved )
27-
local traitSaved = GetItemLinkTraitInfo( linkSaved )
28-
local _, _, _, _, setIdEquipped = GetItemLinkSetInfo( linkEquipped )
29-
local _, _, _, _, setIdSaved = GetItemLinkSetInfo( linkSaved )
24+
local traitEquipped = GetItemLinkTraitInfo( linkEquipped )
25+
local traitSaved = GetItemLinkTraitInfo( linkSaved )
26+
local weaponTypeEquipped = GetItemLinkWeaponType( linkEquipped )
27+
local weaponTypeSaved = GetItemLinkWeaponType( linkSaved )
28+
local _, _, _, _, _, setIdEquipped = GetItemLinkSetInfo( linkEquipped )
29+
local _, _, _, _, _, setIdSaved = GetItemLinkSetInfo( linkSaved )
3030

3131
if WW.settings.comparisonDepth == 1 then -- easy
3232
if traitEquipped ~= traitSaved or weaponTypeEquipped ~= weaponTypeSaved or setIdEquipped ~= setIdSaved then
@@ -94,6 +94,7 @@ function WWV.DidSetupSwapCorrectly( workAround )
9494
local equippedUId = Id64ToString( GetItemUniqueId( BAG_WORN, equipSlot ) )
9595
local savedUId = setupTable.gear[ equipSlot ].id
9696
local success = nil
97+
logger:Debug( " equipSlot: %s, %s // %s", GetString( "SI_EQUIPSLOT", equipSlot ), equippedLink, savedLink )
9798
if WWV.CompareItemLinks( equippedLink, savedLink, equippedUId, savedUId ) then
9899
success = true
99100
else

0 commit comments

Comments
 (0)