Skip to content

Commit 721fd16

Browse files
committed
work around ranged weapon Blizzard issue in MoP Classic, where ranged weapons have not been updated to the correct Enum.InventoryType value matching modern WoW
1 parent 1d1c415 commit 721fd16

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

AutoGear.lua

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3136,13 +3136,19 @@ function AutoGearGetValidGearSlots(info)
31363136
or nil,
31373137
[Enum.InventoryType.IndexRangedType] = (TOC_VERSION_CURRENT < TOC_VERSION_MOP)
31383138
and { INVSLOT_RANGED }
3139-
or { INVSLOT_MAINHAND },
3139+
or ((weapons == "ranged")
3140+
and { INVSLOT_MAINHAND }
3141+
or nil),
31403142
[Enum.InventoryType.IndexThrownType] = (TOC_VERSION_CURRENT < TOC_VERSION_MOP)
31413143
and { INVSLOT_RANGED }
3142-
or { INVSLOT_MAINHAND },
3144+
or ((weapons == "ranged")
3145+
and { INVSLOT_MAINHAND }
3146+
or nil),
31433147
[Enum.InventoryType.IndexRangedrightType] = (TOC_VERSION_CURRENT < TOC_VERSION_MOP)
31443148
and { INVSLOT_RANGED }
3145-
or { INVSLOT_MAINHAND },
3149+
or ((weapons == "ranged")
3150+
and { INVSLOT_MAINHAND }
3151+
or nil),
31463152
[Enum.InventoryType.IndexRelicType] = (TOC_VERSION_CURRENT < TOC_VERSION_MOP)
31473153
and { INVSLOT_RANGED }
31483154
or nil,
@@ -3223,13 +3229,19 @@ function AutoGearGetSetSlots(info)
32233229
or nil,
32243230
[Enum.InventoryType.IndexRangedType] = (TOC_VERSION_CURRENT < TOC_VERSION_MOP)
32253231
and { INVSLOT_RANGED }
3226-
or { INVSLOT_MAINHAND },
3232+
or ((weapons == "ranged")
3233+
and { INVSLOT_MAINHAND }
3234+
or nil),
32273235
[Enum.InventoryType.IndexThrownType] = (TOC_VERSION_CURRENT < TOC_VERSION_MOP)
32283236
and { INVSLOT_RANGED }
3229-
or { INVSLOT_MAINHAND },
3237+
or ((weapons == "ranged")
3238+
and { INVSLOT_MAINHAND }
3239+
or nil),
32303240
[Enum.InventoryType.IndexRangedrightType] = (TOC_VERSION_CURRENT < TOC_VERSION_MOP)
32313241
and { INVSLOT_RANGED }
3232-
or { INVSLOT_MAINHAND },
3242+
or ((weapons == "ranged")
3243+
and { INVSLOT_MAINHAND }
3244+
or nil),
32333245
[Enum.InventoryType.IndexRelicType] = (TOC_VERSION_CURRENT < TOC_VERSION_MOP)
32343246
and { INVSLOT_RANGED }
32353247
or nil,

0 commit comments

Comments
 (0)