Add proper support of attribute value limit

This fixes issue with blighted/polarized weapons getting resistances down to negative values
Remove unused import