From 5c0a2eb65e98f4a5494745701723c1da3fbf0c3a Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 31 Jul 2016 23:27:33 -0400 Subject: [PATCH] Inventory Full During Snipe Power Farming Fix(for real this time) pokemon box gets full when you use snipe to power farm then just spams inv full rather than initiate evolve>transfer, forcing you to restart the bot to do it. --- PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs b/PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs index 0122035f8..bd77174e3 100644 --- a/PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs +++ b/PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs @@ -281,12 +281,22 @@ await session.Client.Player.UpdatePlayerLocation(CurrentLatitude, CurrentLongitu } else if (encounter.Status == EncounterResponse.Types.Status.PokemonInventoryFull) { - session.EventDispatcher.Send(new WarnEvent + if (session.LogicSettings.EvolveAllPokemonAboveIv || session.LogicSettings.EvolveAllPokemonWithEnoughCandy) { - Message = - session.Translation.GetTranslation( - TranslationString.InvFullTransferManually) - }); + await EvolvePokemonTask.Execute(session, cancellationToken); + } + + if (session.LogicSettings.TransferDuplicatePokemon) + { + await TransferDuplicatePokemonTask.Execute(session, cancellationToken); + } + else + { + session.EventDispatcher.Send(new WarnEvent + { + Message = session.Translation.GetTranslation(TranslationString.InvFullTransferManually) + }); + } } else {