Skip to content

Commit

Permalink
Merge pull request #2708 from ChemiHatake/master
Browse files Browse the repository at this point in the history
Delay between evolves
  • Loading branch information
BornSupercharged authored Aug 4, 2016
2 parents 57ca0c8 + f8fd3ac commit d4b8543
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PoGo.NecroBot.Logic/Tasks/EvolvePokemonTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static async Task UseLuckyEgg(ISession session)
await session.Client.Inventory.UseItemXpBoost();
await session.Inventory.RefreshCachedInventory();
if (luckyEgg != null) session.EventDispatcher.Send(new UseLuckyEggEvent {Count = luckyEgg.Count});
DelayingUtils.Delay(session.LogicSettings.DelayBetweenPokemonCatch, 2000);
DelayingUtils.Delay(session.LogicSettings.DelayBetweenPlayerActions, 2000);
}

private static async Task evolve(ISession session, List<PokemonData> pokemonToEvolve)
Expand All @@ -94,6 +94,10 @@ private static async Task evolve(ISession session, List<PokemonData> pokemonToEv
Exp = evolveResponse.ExperienceAwarded,
Result = evolveResponse.Result
});
if(!pokemonToEvolve.Last().Equals(pokemon))
{
DelayingUtils.Delay(session.LogicSettings.DelayBetweenPlayerActions, 2000);
}
}
}

Expand Down
1 change: 1 addition & 0 deletions PoGo.NecroBot.Logic/Tasks/EvolveSpecificPokemonTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static async Task Execute(ISession session, ulong pokemonId)
Exp = evolveResponse.ExperienceAwarded,
Result = evolveResponse.Result
});
DelayingUtils.Delay(session.LogicSettings.DelayBetweenPlayerActions, 2000);
}
}
}

0 comments on commit d4b8543

Please sign in to comment.