The law takes intent into consideration, candy makers are not intending to make someone addicted to their product. This lawsuit is showing the intent behind certain user experience features was to addict users, not just make it a sweet and nice place to be.