Fixed bug with items getting wrong damage values. Fixes #1214