mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Check for Fishing flag in case of grass spawns
Handles exceptions like Chewtle in high level area of Route 2, which are in the Normal weather grass slots as well as the fishing slots.
This commit is contained in:
parent
178a40afbd
commit
0f1f0166ce
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ namespace PKHeX.Core
|
|||
public static class AreaSlotType8Extensions
|
||||
{
|
||||
public static bool CanCrossover(this AreaSlotType8 type) => type is not HiddenMain or HiddenMain2 or OnlyFishing;
|
||||
public static bool CanEncounterViaFishing(this AreaSlotType8 type, AreaWeather8 weather) => type is OnlyFishing || weather is Fishing;
|
||||
public static bool CanEncounterViaFishing(this AreaSlotType8 type, AreaWeather8 weather) => type is OnlyFishing || weather.HasFlag(Fishing);
|
||||
public static bool CanEncounterViaCurry(this AreaSlotType8 type) => type is HiddenMain or HiddenMain2;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue