mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-30 16:08:32 -05:00
Respect ability from criteria
This commit is contained in:
@@ -20,9 +20,10 @@ public EncounterSlot3PokeSpot(EncounterArea3XD area, int species, int min, int m
|
||||
|
||||
protected override void SetPINGA(PKM pk, EncounterCriteria criteria)
|
||||
{
|
||||
int gender = criteria.GetGender(-1, pk.PersonalInfo);
|
||||
var pi = pk.PersonalInfo;
|
||||
int gender = criteria.GetGender(-1, pi);
|
||||
int nature = (int)criteria.GetNature(Nature.Random);
|
||||
int ability = Util.Rand.Next(2);
|
||||
int ability = criteria.GetAbilityFromNumber(0, pi);
|
||||
PIDGenerator.SetRandomPokeSpotPID(pk, nature, gender, ability, SlotNumber);
|
||||
pk.Gender = gender;
|
||||
pk.StatNature = nature;
|
||||
|
||||
Reference in New Issue
Block a user