mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 10:50:49 -05:00
@@ -67,7 +67,7 @@ protected override void ApplyDetails(ITrainerInfo tr, EncounterCriteria criteria
|
||||
height = weight = Gift ? Size : undefinedSize;
|
||||
scale = Size;
|
||||
}
|
||||
|
||||
|
||||
const byte rollCount = 1;
|
||||
var pi = PersonalTable.SV.GetFormEntry(Species, Form);
|
||||
var param = new GenerateParam9((byte)pi.Gender, FlawlessIVCount, rollCount, height, weight, scale, Ability, Shiny);
|
||||
@@ -76,7 +76,6 @@ protected override void ApplyDetails(ITrainerInfo tr, EncounterCriteria criteria
|
||||
var success = this.TryApply64(pk9, init, param, criteria, IVs.IsSpecified);
|
||||
if (!success)
|
||||
this.TryApply64(pk9, init, param, EncounterCriteria.Unrestricted, IVs.IsSpecified);
|
||||
|
||||
if (IVs.IsSpecified)
|
||||
{
|
||||
pk.IV_HP = IVs.HP;
|
||||
@@ -87,8 +86,8 @@ protected override void ApplyDetails(ITrainerInfo tr, EncounterCriteria criteria
|
||||
pk.IV_SPE = IVs.SPE;
|
||||
}
|
||||
if (Nature != Nature.Random)
|
||||
{
|
||||
pk.Nature = pk.StatNature = (int)Nature;
|
||||
}
|
||||
if (Gender != -1)
|
||||
pk.Gender = (byte)Gender;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user