mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-03 17:29:13 +00:00
Ignore static encounters if pokemon is insde a safari ball or inside a sports ball, to fix error on Voltorb from HGSS Safari that is mistaken from HGSS static voltorb
This commit is contained in:
parent
1dc6204b61
commit
4f371dbe35
1 changed files with 1 additions and 1 deletions
|
@ -1021,7 +1021,7 @@ namespace PKHeX.Core
|
|||
WildEncounter = (EncounterSlot[])EncounterMatch;
|
||||
}
|
||||
|
||||
if (Gen4Result == null && null != (EncounterStaticMatch = Legal.getValidStaticEncounter(pkm)))
|
||||
if (Gen4Result == null && pkm.Ball != 5 && pkm.Ball != 0x18 && null != (EncounterStaticMatch = Legal.getValidStaticEncounter(pkm)))
|
||||
{
|
||||
EncounterMatch = EncounterStaticMatch.First();
|
||||
var result = verifyEncounterStatic();
|
||||
|
|
Loading…
Reference in a new issue