Add static/magnet fail enum value

can fail leading to regular ESV calc
This commit is contained in:
Kurt 2017-11-30 23:07:11 -08:00
parent 5d74096243
commit 4b954cd102
2 changed files with 2 additions and 4 deletions

View file

@ -169,11 +169,8 @@ namespace PKHeX.Core
// Slot Modifiers before ESV // Slot Modifiers before ESV
var force = (info.DPPt ? p16 >> 15 : p16 & 1) == 1; var force = (info.DPPt ? p16 >> 15 : p16 & 1) == 1;
if (!force)
continue;
var rand = f.Seed >> 16; var rand = f.Seed >> 16;
yield return info.GetFrame(prev, LeadRequired.StaticMagnet, rand, rand); yield return info.GetFrame(prev, force ? LeadRequired.StaticMagnet : LeadRequired.StaticMagnetFail, rand, rand);
} }
} }

View file

@ -10,6 +10,7 @@
// Slot Modifiers // Slot Modifiers
StaticMagnet, StaticMagnet,
StaticMagnetFail,
// Level Modifiers // Level Modifiers
IntimidateKeenEye, // Keen Eye IntimidateKeenEye, // Keen Eye