Skip to content

Commit

Permalink
Inventory Full During Snipe Power Farming Fix(for real this time)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
OuttaControlX committed Aug 1, 2016
1 parent e6b0756 commit 5c0a2eb
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 5c0a2eb

Please sign in to comment.