Didn't you see the outer if? (!MapRunnerSettings.Instance.SellIgnoredMaps || !groupArray[0].IsIgnored())
MapRunner does not provide any "max death per map" functionality at all. Where did that 6 value come from?
I see it. Let me clarify
1) MapRunnerSettings.Instance.SellIgnoredMaps set to true.
2) We have two grouped maps: Dungeon Map, Crypt Map.
3) Crypt Map is ignored in settings.
4) !MapRunnerSettings.Instance.SellIgnoredMaps returned false but !groupArray[0].IsIgnored() returned true for Dungeon Map
5) !MinMapAmountCheck(amountForMove) returned true for Dungeon Map. It's not going to be sold.
6) Loop breaks, Crypt Map that should be sold is not being checked for sell.
Now this code
Code:
if (!MapRunnerSettings.Instance.SellIgnoredMaps || !groupArray[0].IsIgnored())
{
if (!MinMapAmountCheck(amountForMove))
{
Log.WarnFormat("[SellMapTask] Min map amount reached. Won't sell {0}", groupArray[0].Name);
if (!MapRunnerSettings.Instance.SellIgnoredMaps)
break;
continue;
}
}
1) MapRunnerSettings.Instance.SellIgnoredMaps set to true.
2) We have two grouped maps: Dungeon Map, Crypt Map.
3) Crypt Map is ignored in settings.
4) !MapRunnerSettings.Instance.SellIgnoredMaps returned false but !groupArray[0].IsIgnored() returned true for Dungeon Map
5) !MinMapAmountCheck(amountForMove) returned true for Dungeon Map. It's not going to be sold.
6) !MapRunnerSettings.Instance.SellIgnoredMaps returned false, loop continues.
7) (!MapRunnerSettings.Instance.SellIgnoredMaps || !groupArray[0].IsIgnored()) returned false for Dungeon Map, it's being sold.