Skip to content

Commit

Permalink
Merge pull request #4024 from DBa2016/master
Browse files Browse the repository at this point in the history
Fixe LevelUpPokemonTask to fire even when only one pokemon to upgrade
  • Loading branch information
GrimmGringo committed Aug 9, 2016
2 parents b406bac + 8f7e7b6 commit f467ace
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PoGo.NecroBot.Logic/Tasks/LevelUpPokemonTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
{
if (session.LogicSettings.UseLevelUpList && PokemonToLevel!=null)
{
for (int i = 0; i < PokemonToLevel.Count - 1; i++)
for (int i = 0; i < PokemonToLevel.Count; i++)
{
if (PokemonToLevel.Contains(pokemon.PokemonId))
{
Expand All @@ -62,7 +62,6 @@ public static async Task Execute(ISession session, CancellationToken cancellatio

if (upgradedNumber >= session.LogicSettings.AmountOfTimesToUpgradeLoop)
break;
break;
}
else
{
Expand Down

0 comments on commit f467ace

Please sign in to comment.