diff --git a/PoGo.NecroBot.Logic/Tasks/CatchPokemonTask.cs b/PoGo.NecroBot.Logic/Tasks/CatchPokemonTask.cs index fbb322579..cd0730686 100644 --- a/PoGo.NecroBot.Logic/Tasks/CatchPokemonTask.cs +++ b/PoGo.NecroBot.Logic/Tasks/CatchPokemonTask.cs @@ -432,7 +432,13 @@ encounter is EncounterResponse || encounter is IncenseEncounterResponse evt.Shiny = (await session.Inventory.GetPokemons().ConfigureAwait(false)).First(x => x.Id == caughtPokemonResponse.CapturedPokemonId).PokemonDisplay.Shiny ? "Yes" : "No"; evt.Gender = (await session.Inventory.GetPokemons().ConfigureAwait(false)).First(x => x.Id == caughtPokemonResponse.CapturedPokemonId).PokemonDisplay.Gender.ToString(); - + if (session.LogicSettings.AutoFavoriteShinyOnCatch) + { + if (evt.Shiny == "Yes") + { + await FavoritePokemonTask.Execute (session, encounteredPokemon.Id, true); + } + } var totalExp = 0; var totalStarDust = caughtPokemonResponse.CaptureAward.Stardust.Sum(); if (encounteredPokemon != null)