From 7f040ea3f6d72fb92c9e0f40331cf052cab2753f Mon Sep 17 00:00:00 2001 From: Taracque Date: Sat, 1 Mar 2014 10:25:43 +0100 Subject: [PATCH] Fixed an issue when no weapon equipped. --- DKCrutch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DKCrutch.lua b/DKCrutch.lua index e3570d2..4d75c4a 100755 --- a/DKCrutch.lua +++ b/DKCrutch.lua @@ -125,7 +125,7 @@ function DKCrutch.events.PLAYER_EQUIPMENT_CHANGED() DKCrutch.hasT15_4pcs = DKCrutch:HasSetBonus( 138347, 4 ); _, itemSlot = GetInventorySlotInfo("MainHandSlot"); - if (itemSlot) then + if (itemSlot) and (GetInventoryItemID("player", itemSlot)) then _, _, _, _, _, _, _, _, itemType = GetItemInfo( GetInventoryItemID("player", itemSlot)); DKCrutch.dualWield = (itemType == "INVTYPE_WEAPON"); end -- 1.7.9.5