mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-04-24 07:08:35 -05:00
Fixing StatusCondition to report sleep correctly (#4397)
This commit is contained in:
parent
a60e76f16d
commit
f2dfeb20af
|
|
@ -36,7 +36,7 @@ public static StatusType GetStatusType(this StatusCondition value)
|
|||
if (value == StatusCondition.None)
|
||||
return StatusType.None;
|
||||
if (value <= StatusCondition.Sleep7)
|
||||
return (StatusType)value;
|
||||
return StatusType.Sleep;
|
||||
|
||||
if ((value & StatusCondition.Paralysis) != 0)
|
||||
return StatusType.Paralysis;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user