This is my personal gitlab instance. Feel free to browse my stuff: https://gitlab.greeson.xyz/users/highsaltlevels/projects

Nil ptr fix

David Greeson requested to merge nil-ptr-fix into main

Summary

I had to fix a couple issues. First of all, new trainers would hit a nil pointer when adding their first pokemon. It's because I was checking to see if they've caught the pokemon before, but that check is only valid for existing trainers.

Second, there was an issue with the indexing such that pokebot would try to pick an evolution chain that doesn't exist. That's fixed here too.

Merge request reports