mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-24 00:34:20 -05:00
Rearrange gen3/4 deferral enum
null check necessary for unset deferral needing to ignore max
This commit is contained in:
@@ -28,11 +28,11 @@ private enum DeferralType
|
||||
// Legal
|
||||
None,
|
||||
PIDIVDefer,
|
||||
SlotNumber,
|
||||
|
||||
// Illegal
|
||||
PIDIV,
|
||||
Ball,
|
||||
SlotNumber,
|
||||
PIDIV,
|
||||
}
|
||||
|
||||
private struct Deferral
|
||||
@@ -42,7 +42,7 @@ private struct Deferral
|
||||
|
||||
public void Update(DeferralType type, IEncounterable enc)
|
||||
{
|
||||
if (Type >= type)
|
||||
if (type >= Type && Encounter is not null)
|
||||
return;
|
||||
Type = type;
|
||||
Encounter = enc;
|
||||
|
||||
@@ -35,10 +35,10 @@ private enum DeferralType
|
||||
PIDIVDefer,
|
||||
|
||||
// Illegal
|
||||
PIDIV,
|
||||
Tile,
|
||||
Ball,
|
||||
SlotNumber,
|
||||
Ball,
|
||||
Tile,
|
||||
PIDIV,
|
||||
}
|
||||
|
||||
private struct Deferral
|
||||
@@ -48,7 +48,7 @@ private struct Deferral
|
||||
|
||||
public void Update(DeferralType type, IEncounterable enc)
|
||||
{
|
||||
if (Type >= type)
|
||||
if (type >= Type && Encounter is not null)
|
||||
return;
|
||||
Type = type;
|
||||
Encounter = enc;
|
||||
|
||||
Reference in New Issue
Block a user