mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 15:59:13 +00:00
Update Yancy Curtis trade OT checks
Thanks paf! https://projectpokemon.org/home/forums/topic/46143-bug-in-last-update/
This commit is contained in:
parent
c8897161b7
commit
027d898f3d
2 changed files with 4 additions and 3 deletions
|
@ -675,7 +675,8 @@ namespace PKHeX.Core
|
|||
new EncounterTrade { Species = 065, Level = 40, Ability = 1, TID = 17074, SID = 00001, OTGender = 1, Gender = 0, IVs = new[] {20,20,20,31,20,20}, Nature = Nature.Timid, }, // Alakazam
|
||||
};
|
||||
|
||||
internal const int YancyCurtisTID = 10303;
|
||||
internal const int YancyTID = 10303;
|
||||
internal const int CurtisTID = 54118;
|
||||
internal static readonly EncounterTrade[] TradeGift_B2W2_YancyCurtis =
|
||||
{
|
||||
// player is male
|
||||
|
|
|
@ -312,8 +312,8 @@ namespace PKHeX.Core
|
|||
}
|
||||
else // B2W2
|
||||
{
|
||||
if (EncounterMatch is EncounterTrade t && t.TID == Encounters5.YancyCurtisTID)
|
||||
VerifyTradeOTOnly(data, pkm.OT_Gender == 0 ? Encounters5.TradeOT_B2W2_M : Encounters5.TradeOT_B2W2_F);
|
||||
if (EncounterMatch is EncounterTrade t && (t.TID == Encounters5.YancyTID || t.TID == Encounters5.CurtisTID))
|
||||
VerifyTradeOTOnly(data, t.TrainerNames);
|
||||
else
|
||||
VerifyTradeTable(data, Encounters5.TradeB2W2, Encounters5.TradeGift_B2W2);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue