Ad
  • Custom User Avatar

    I had the same problem, because I was over/undercounting d in certain circumstances.

    Remember, rank 0 does not count. So e.g. if user_rank == -1 and kata_rank == 1, d is 1 not 2.