mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 07:44:46 -05:00
Add vc2 evo chain check
queue should be checking against none left rather than any left. Add test cases
This commit is contained in:
@@ -67,7 +67,7 @@ private static EvoCriteria[][] GetChainAll(PKM pkm, IEncounterable Encounter, IE
|
||||
// If the pokemon origin is illegal (e.g. Gen3 Infernape) the list will be emptied -- species lineage did not exist at any evolution stage.
|
||||
while (mostEvolved.Species > maxspeciesgen)
|
||||
{
|
||||
if (queue.Count == 1)
|
||||
if (queue.Count == 0)
|
||||
return GensEvoChains;
|
||||
if (mostEvolved.RequiresLvlUp)
|
||||
{
|
||||
@@ -93,7 +93,7 @@ private static EvoCriteria[][] GetChainAll(PKM pkm, IEncounterable Encounter, IE
|
||||
{
|
||||
if (g < 7 && pkm.Format >= 7 && mostEvolved.Form > 0)
|
||||
{
|
||||
if (queue.Count == 1)
|
||||
if (queue.Count == 0)
|
||||
break;
|
||||
mostEvolved = queue.Dequeue();
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user