From 25991e0839c8ab19dd56e57911bba0edbfa33e11 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Fri, 13 Oct 2017 03:07:45 +0400 Subject: [PATCH] Possibilities grade check fixed --- lib/talkers/pokedex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/talkers/pokedex.go b/lib/talkers/pokedex.go index 5caaeaa..bfc3ea3 100644 --- a/lib/talkers/pokedex.go +++ b/lib/talkers/pokedex.go @@ -107,7 +107,7 @@ func (t *Talkers) PokememeInfo(update tgbotapi.Update, player_raw dbmapping.Play } if calculate_possibilites { - if (pk.Grade < profile_raw.Level_id + 2) || (pk.Grade > profile_raw.Level_id - 3) { + if (pk.Grade < profile_raw.Level_id + 2) && (pk.Grade > profile_raw.Level_id - 3) { message += "\nВероятность поимки:" for i := range(pokememe.Locations) { percentile, pokeballs := c.Getters.PossibilityRequiredPokeballs(pokememe.Locations[i].Id, pk.Grade, profile_raw.Level_id)