Skip to content

Commit

Permalink
FIXED: LocsVisited already defined in SnipePokemonTask.cs line:407
Browse files Browse the repository at this point in the history
only if pokemon caught, we don't need to check location, otherwise we need to check location
  • Loading branch information
msx752 committed Aug 9, 2016
1 parent fbdee75 commit 89ae186
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
return;

await Snipe(session, pokemonIds, location.Latitude, location.Longitude, cancellationToken);
if (!LocsVisited.Contains(new PokemonLocation(location.Latitude, location.Longitude)))
LocsVisited.Add(new PokemonLocation(location.Latitude, location.Longitude));
}
}
}
Expand All @@ -286,8 +284,7 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
return;

await Snipe(session, pokemonIds, location.Latitude, location.Longitude, cancellationToken);
if (!LocsVisited.Contains(new PokemonLocation(location.Latitude, location.Longitude)))
LocsVisited.Add(new PokemonLocation(location.Latitude, location.Longitude));

}
}
}
Expand Down

0 comments on commit 89ae186

Please sign in to comment.