Fix FormInfo.IsBattleOnlyForm for Zygarde-Complete (#4677)

This commit is contained in:
Parnassius 2025-12-30 19:10:40 +01:00 committed by GitHub
parent 972aaba5fa
commit af98a5b5e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}