Ok i finally get it, in aesprite you are using 6+ layers for each weapon - these are compressed to one in the export which does not capture the true end result. Also the rogue weapons are in there. The problem is the way you are flattening the image. I think the export should export two or more parts of the weapon layer, based on z index
'Weapon to draw behind'
and
'Weapon to draw infront'
I will see if i can get this working myself, thanks
https://ibb.co/1fzmTFsR