Make shield switch code compatible with any instance of ItemShield