I hope your little Macaw's foot will be okay. I always worry about toys and things I leave in my guys' cages. I try to think of all possible ways my birds might become caught in or choked by cage items before I'll allow them access to the items. I worry a lot about thin ropes and long chains. I especially worry about those chains and chain or rope swings with wooden blocks or other objects strung on them, because when some of the blocks are broken away from the chains by the birds during playtime, the chains or ropes can possibly be twisted around the bird's neck which would become a weighted noose scenario. Parrot necks are very small in diameter; even the necks of large Macaws are small. I've always thought it best to carefully consider everything we place in our bird cages. Just to be safe!
I sincerely hope your Illiger's foot makes a full recovery!