mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-04 01:39: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;
|
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();
|
EncounterMatch = EncounterStaticMatch.First();
|
||||||
var result = verifyEncounterStatic();
|
var result = verifyEncounterStatic();
|
||||||
|
|
Loading…
Reference in a new issue