From 55d8f4aa2684b6243796998baca4b6c8d89cffd0 Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 16 Nov 2017 20:59:16 -0800 Subject: [PATCH] Add rockruff event evo edge case different altform IDs --- PKHeX.Core/Legality/Encounters/EncounterGenerator.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs b/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs index 89ceee034..79af11657 100644 --- a/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs +++ b/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs @@ -1313,7 +1313,15 @@ private static bool GetIsMatchWC7(PKM pkm, WC7 wc, IEnumerable vs) if (wc.EncryptionConstant != 0 && wc.EncryptionConstant != pkm.EncryptionConstant) return false; if (wc.Language != 0 && wc.Language != pkm.Language) return false; } - if (wc.Form != pkm.AltForm && vs.All(dl => !IsFormChangeable(pkm, dl.Species))) return false; + if (wc.Form != pkm.AltForm && vs.All(dl => !IsFormChangeable(pkm, dl.Species))) + { + if (wc.Species == 744 && wc.Form == 1 && pkm.Species == 745 && pkm.AltForm == 2) + { + // Rockruff gift edge case; has altform 1 then evolves to altform 2 + } + else + return false; + } if (wc.IsEgg) {