Removed the increase_caught_count call inside of the 'update_pokedex_related_infos(pkmn)' method to prevent a double increase of the caught count
MR Description
- This MR removes the
$pokedex.increase_creature_caught_count(pkmn.id)
call from thedef update_pokedex_related_infos(pkmn)
method to prevent an extra increase of the caught_count - Since the right place to call this method already exists in
GameState def add_pokemon(pkmn)
there are no extra changes needed
Tests to realize
-
$pokedex.creature_caught_count(db_symbol of the pokemon you are testing with) = 0 or any other number -
After catching the pokemon where you checked the caught_count previously check it again the number should be the old number +1
Edited by Zøzo