Repair now restores magic charges for casting weapons

Fixes ticket #161