From bfb8497c239161b130d76c2b3c21da1ba6eb2567 Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 3 Aug 2016 13:59:28 +0200 Subject: [PATCH] changed egg prio for unlimited incubator --- PoGo.NecroBot.Logic/Tasks/UseIncubatorsTask.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PoGo.NecroBot.Logic/Tasks/UseIncubatorsTask.cs b/PoGo.NecroBot.Logic/Tasks/UseIncubatorsTask.cs index e8c299d6e..08e3282e1 100644 --- a/PoGo.NecroBot.Logic/Tasks/UseIncubatorsTask.cs +++ b/PoGo.NecroBot.Logic/Tasks/UseIncubatorsTask.cs @@ -73,7 +73,8 @@ public static async Task Execute(ISession session, CancellationToken cancellatio if (incubator.PokemonId == 0) { // Unlimited incubators prefer short eggs, limited incubators prefer long eggs - var egg = incubator.ItemId == ItemId.ItemIncubatorBasicUnlimited + // Special case: If only one incubator is available at all, it will prefer long eggs + var egg = (incubator.ItemId == ItemId.ItemIncubatorBasicUnlimited && incubators.Count > 1) ? unusedEggs.FirstOrDefault() : unusedEggs.LastOrDefault();