The laws of sympathetic magic