refresh the inventory cache befor doing evolve
refresh the inventory cache befor doing evolve
diff --git a/PokemonGo.RocketAPI.Logic/Logic.cs b/PokemonGo.RocketAPI.Logic/Logic.cs
index 15c932b..d5f15d7 100644
--- a/PokemonGo.RocketAPI.Logic/Logic.cs
+++ b/PokemonGo.RocketAPI.Logic/Logic.cs
@@ -307,6 +307,7 @@ namespace PokemonGo.RocketAPI.Logic
private async Task EvolveAllPokemonWithEnoughCandy(IEnumerable<PokemonId> filter = null)
{
+ await Inventory.getCachedInventory(_client, true);
var pokemonToEvolve = await _inventory.GetPokemonToEvolve(filter);
if (pokemonToEvolve != null && pokemonToEvolve.Any())
Logger.Write($"{pokemonToEvolve.Count()} Pokemon:", LogLevel.Evolve);
diff --git a/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj b/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
index cbcf148..5a99744 100644
--- a/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
+++ b/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
@@ -17,7 +17,7 @@
<UpdateAssemblyInfoVersion>False</UpdateAssemblyInfoVersion>
<AssemblyVersionSettings>YearStamp.MonthStamp.DayStamp.Increment</AssemblyVersionSettings>
<PrimaryVersionType>AssemblyVersionAttribute</PrimaryVersionType>
- <AssemblyVersion>2016.7.24.280</AssemblyVersion>
+ <AssemblyVersion>2016.7.24.281</AssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
diff --git a/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs b/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
index c9ad7f4..cb9cb47 100644
--- a/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
+++ b/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2016.7.24.281")]
+[assembly: AssemblyVersion("2016.7.24.282")]
[assembly: AssemblyFileVersion("1.0.0.0")]
You may download the files in Public Git.