Hello,
I am working on a simple item-slot system, where a unit can't have more than one of each slot (helm, weapon, ...).
Now, I have a Jass trigger that checks every inventory slot for its item type and compares that to the item that is being picked up.
I have noticed that items with miscellaneous as item classification always bug for me and trigger a drop despite an empty inventory.
Am I assuming right that itemtype is an enumeration starting from 0, and when I use GetItemType on an empty inventory slot, I am returned 0, as no item is found and thus just some default value is returned?
And 0 most likely represents the itemtype miscellaneous then, I guess?
Otherwise I can't understand why items of this type bug out.
Anyone ever noticed this behavior?
I am working on a simple item-slot system, where a unit can't have more than one of each slot (helm, weapon, ...).
Now, I have a Jass trigger that checks every inventory slot for its item type and compares that to the item that is being picked up.
I have noticed that items with miscellaneous as item classification always bug for me and trigger a drop despite an empty inventory.
Am I assuming right that itemtype is an enumeration starting from 0, and when I use GetItemType on an empty inventory slot, I am returned 0, as no item is found and thus just some default value is returned?
And 0 most likely represents the itemtype miscellaneous then, I guess?
Otherwise I can't understand why items of this type bug out.
Anyone ever noticed this behavior?
Last edited: