Skip to content

Commit

Permalink
Updated LevelUpPokemonTask
Browse files Browse the repository at this point in the history
Update to reflect that the max Pokemon Level is the Trainer Level +1
  • Loading branch information
PedroSeda committed Aug 8, 2016
1 parent a27f738 commit bb20dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PoGo.NecroBot.Logic/Tasks/LevelUpPokemonTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
var upgradedNumber = 0;
foreach (var pokemon in upgradablePokemon)
{
if (PokemonInfo.GetLevel(pokemon) >= session.Inventory.GetPlayerStats().Result.FirstOrDefault().Level) continue;
if (PokemonInfo.GetLevel(pokemon) >= session.Inventory.GetPlayerStats().Result.FirstOrDefault().Level + 1) continue;

var settings = pokemonSettings.Single(x => x.PokemonId == pokemon.PokemonId);
var familyCandy = pokemonFamilies.Single(x => settings.FamilyId == x.FamilyId);
Expand All @@ -51,4 +51,4 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
}
}
}
}
}

0 comments on commit bb20dfc

Please sign in to comment.