Skip to content

Commit

Permalink
Merge pull request #3314 from ChemiHatake/master
Browse files Browse the repository at this point in the history
Forgot to remove all the debug code
  • Loading branch information
GrimmGringo committed Aug 8, 2016
2 parents 55fbbea + db592c3 commit a27f738
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions PoGo.NecroBot.Logic/Tasks/EvolvePokemonTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
return;
}
}
if(eggNeededToEvolve <= deltaCount)
if(eggNeededToEvolve <= deltaCount || !session.LogicSettings.KeepPokemonsThatCanEvolve)
{
if (eggNeededToEvolve > 0 || !session.LogicSettings.KeepPokemonsThatCanEvolve)
if (eggNeededToEvolve > 0)
{
session.EventDispatcher.Send(new UpdateEvent()
{
Message = session.Translation.GetTranslation(TranslationString.CatchMorePokemonToUseLuckyEgg,
eggNeededToEvolve)
});
return;
}
}
else
Expand All @@ -82,9 +83,9 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
Message = session.Translation.GetTranslation(TranslationString.WaitingForMorePokemonToEvolve,
pokemonToEvolve.Count, deltaCount, totalPokemon.Count(), needPokemonToStartEvolve, session.LogicSettings.EvolveKeptPokemonsAtStorageUsagePercentage)
});
return;
}
}
return;
}
if (await shouldUseLuckyEgg(session, pokemonToEvolve))
{
Expand Down

0 comments on commit a27f738

Please sign in to comment.