How can you clone a master ball in Pokemon pearl?

You cant clone a master ball but there is an action replay code and this might work make a Pokemon hold master ball then clone it

hope this helps)