mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 01:45:23 -05:00
Handle Volt Tackle for HOME sharing GetAllMoves
This commit is contained in:
@@ -150,6 +150,10 @@ public void GetAllMoves(Span<bool> result, PKM pk, EvolutionHistory history, IEn
|
||||
|
||||
foreach (var evo in evos)
|
||||
GetAllMoves(result, pk, evo, types, option);
|
||||
|
||||
var home = LearnGroupHOME.Instance;
|
||||
if (option != LearnOption.HOME && home.HasVisited(pk, history))
|
||||
home.GetAllMoves(result, pk, history, enc, types);
|
||||
}
|
||||
|
||||
private static void GetAllMoves(Span<bool> result, PKM pk, EvoCriteria evo, MoveSourceType types, LearnOption option)
|
||||
|
||||
@@ -56,6 +56,10 @@ public void GetAllMoves(Span<bool> result, PKM pk, EvolutionHistory history, IEn
|
||||
|
||||
foreach (var evo in history.Gen8a)
|
||||
GetAllMoves(result, pk, evo, types, option);
|
||||
|
||||
var home = LearnGroupHOME.Instance;
|
||||
if (option != LearnOption.HOME && home.HasVisited(pk, history))
|
||||
home.GetAllMoves(result, pk, history, enc, types);
|
||||
}
|
||||
|
||||
private static void GetAllMoves(Span<bool> result, PKM pk, EvoCriteria evo, MoveSourceType types, LearnOption option)
|
||||
|
||||
@@ -97,6 +97,10 @@ public void GetAllMoves(Span<bool> result, PKM pk, EvolutionHistory history, IEn
|
||||
|
||||
foreach (var evo in history.Gen8b)
|
||||
GetAllMoves(result, pk, evo, types, option);
|
||||
|
||||
var home = LearnGroupHOME.Instance;
|
||||
if (option != LearnOption.HOME && home.HasVisited(pk, history))
|
||||
home.GetAllMoves(result, pk, history, enc, types);
|
||||
}
|
||||
|
||||
private static void GetAllMoves(Span<bool> result, PKM pk, EvoCriteria evo, MoveSourceType types, LearnOption option)
|
||||
|
||||
@@ -121,6 +121,10 @@ public void GetAllMoves(Span<bool> result, PKM pk, EvolutionHistory history, IEn
|
||||
|
||||
foreach (var evo in evos)
|
||||
GetAllMoves(result, pk, evo, types, option);
|
||||
|
||||
var home = LearnGroupHOME.Instance;
|
||||
if (option != LearnOption.HOME && home.HasVisited(pk, history))
|
||||
home.GetAllMoves(result, pk, history, enc, types);
|
||||
}
|
||||
|
||||
private static void GetAllMoves(Span<bool> result, PKM pk, EvoCriteria evo, MoveSourceType types, LearnOption option)
|
||||
|
||||
@@ -277,7 +277,9 @@ private static void LoopMerge(Span<bool> result, PKM pk, ReadOnlySpan<EvoCriteri
|
||||
foreach (var evo in evos)
|
||||
{
|
||||
var chk = dest.GetCanLearnHOME(pk, evo, move, types);
|
||||
if (chk.Method == LearnMethod.None)
|
||||
// HOME has special handling to allow Volt Tackle outside of learnset possibilities.
|
||||
// Most games do not have a Learn Source for Volt Tackle besides it being specially inserted for Egg Encounters.
|
||||
if (chk.Method == LearnMethod.None && move is not (int)Move.VoltTackle)
|
||||
continue;
|
||||
result[move] = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user