At the same time , Sufi mystics synthesized Islamic teaching with local Malay traditions of animistic magic and charisma , though Islam did not become the state religion until Muzaffar Shah became sultan of Melaka ( 1446 1459 ) .
Sufi mystics believed they could see into the future by peering through orbs .