mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 10:55:58 -05:00
Fix FormInfo.IsBattleOnlyForm for Zygarde-Complete (#4677)
This commit is contained in:
@@ -17,10 +17,10 @@ public static class FormInfo
|
||||
/// <returns>True if it can only exist in a battle, false if it can exist outside of battle.</returns>
|
||||
public static bool IsBattleOnlyForm(ushort species, byte form, byte format)
|
||||
{
|
||||
if (BattleMegas.Contains(species))
|
||||
return IsBattleMegaForm(species, form);
|
||||
if (BattleForms.Contains(species))
|
||||
return IsBattleForm(species, form);
|
||||
if (BattleMegas.Contains(species) && IsBattleMegaForm(species, form))
|
||||
return true;
|
||||
if (BattleForms.Contains(species) && IsBattleForm(species, form))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user