mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 06:34:19 +00:00
Flag slotnumber instead of Tile
Oops pk8: check for SV for met location loss
This commit is contained in:
parent
4f23efd939
commit
be79360778
3 changed files with 3 additions and 3 deletions
|
@ -122,7 +122,7 @@ public sealed class EncounterGenerator3 : IEncounterGenerator
|
|||
yield break;
|
||||
if (defer.Type is DeferralType.PIDIV)
|
||||
info.ManualFlag = EncounterYieldFlag.InvalidPIDIV;
|
||||
else if (defer.Type is DeferralType.Tile)
|
||||
else if (defer.Type is DeferralType.SlotNumber)
|
||||
info.ManualFlag = EncounterYieldFlag.InvalidFrame;
|
||||
yield return lastResort;
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ public sealed class EncounterGenerator4 : IEncounterGenerator
|
|||
yield break;
|
||||
if (defer.Type is DeferralType.PIDIV)
|
||||
info.ManualFlag = EncounterYieldFlag.InvalidPIDIV;
|
||||
else if (defer.Type is DeferralType.Tile)
|
||||
else if (defer.Type is DeferralType.SlotNumber)
|
||||
info.ManualFlag = EncounterYieldFlag.InvalidFrame;
|
||||
yield return lastResort;
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ public sealed class PK8 : G8PKM, IHandlerUpdate
|
|||
public override bool SV => MetLocation is LocationsHOME.SWSL or LocationsHOME.SHVL;
|
||||
public override bool BDSP => MetLocation is LocationsHOME.SWBD or LocationsHOME.SHSP;
|
||||
public override bool LA => MetLocation is LocationsHOME.SWLA;
|
||||
public override bool HasOriginalMetLocation => base.HasOriginalMetLocation && !(BDSP || LA);
|
||||
public override bool HasOriginalMetLocation => base.HasOriginalMetLocation && !IsSideTransfer;
|
||||
|
||||
public override string GetString(ReadOnlySpan<byte> data)
|
||||
=> StringConverter8.GetString(data);
|
||||
|
|
Loading…
Reference in a new issue