mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
Fix FormInfo.IsBattleOnlyForm for Zygarde-Complete (#4677)
This commit is contained in:
parent
972aaba5fa
commit
af98a5b5e9
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user