View Single Post
03-26-20, 11:14 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
You do the check
Code:
if (checkItemOnGlobalProtectList(currentItemID) or checkItemOnCharacterProtectList(currentItemID)) and
                            itemValue ~= 0
If itemValue is nil then it is not equal zero. It appears GetItemInfo(currentItemID) is returning a nil for itemValue

Code:
if not itemValue or (checkItemOnGlobalProtectList(currentItemID) or checkItemOnCharacterProtectList(currentItemID)) and
                            itemValue ~= 0
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-27-20 at 12:27 AM.
  Reply With Quote