mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-30 23:49:13 -05:00
Fix WasLink comparison
Closes #2525 G4Celebi & G6Link met location match; Pokémon Link was only available for Gen6 so just check for that origin. Ty @Ammako tbh I shouldn't even have this property ha
This commit is contained in:
@@ -68,7 +68,7 @@ public PK8(byte[] data)
|
||||
public override byte[] Nickname_Trash { get => GetData(0x58, 24); set { if (value?.Length == 24) value.CopyTo(Data, 0x58); } }
|
||||
public override byte[] HT_Trash { get => GetData(0xA8, 24); set { if (value?.Length == 24) value.CopyTo(Data, 0xA8); } }
|
||||
public override byte[] OT_Trash { get => GetData(0xF8, 24); set { if (value?.Length == 24) value.CopyTo(Data, 0xF8); } }
|
||||
public override bool WasLink => Met_Location == Locations.LinkGift6;
|
||||
public override bool WasLink => Met_Location == Locations.LinkGift6 && Gen6;
|
||||
public override bool WasEvent => Locations.IsEventLocation5(Met_Location) || FatefulEncounter;
|
||||
public override bool WasEventEgg => GenNumber < 5 ? base.WasEventEgg : (Locations.IsEventLocation5(Egg_Location) || (FatefulEncounter && Egg_Location == Locations.LinkTrade6)) && Met_Level == 1;
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ public virtual void TradeMemory(bool Bank)
|
||||
}
|
||||
|
||||
// Legality Properties
|
||||
public override bool WasLink => Met_Location == Locations.LinkGift6;
|
||||
public override bool WasLink => Met_Location == Locations.LinkGift6 && Gen6;
|
||||
public override bool WasEvent => Locations.IsEventLocation5(Met_Location) || FatefulEncounter;
|
||||
public override bool WasEventEgg => GenNumber < 5 ? base.WasEventEgg : (Locations.IsEventLocation5(Egg_Location) || (FatefulEncounter && Egg_Location == Locations.LinkTrade6)) && Met_Level == 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user