Fix mg8 partially restricted language check

Recipient language fetching a value of 0 will now be permitted to yield the recipient's language. Earlier logic in the method would check if any other language maps to the recipient language
This commit is contained in:
Kurt 2022-06-04 12:06:23 -07:00
parent 7ae4e0769b
commit d54a9ba3a9
3 changed files with 3 additions and 3 deletions

View file

@ -309,7 +309,7 @@ namespace PKHeX.Core
if (lang == language)
return true;
}
return false;
return GetLanguage(language) == 0;
}
public int GetLanguage(int redeemLanguage) => Data[GetLanguageOffset(GetLanguageIndex(redeemLanguage))];

View file

@ -304,7 +304,7 @@ namespace PKHeX.Core
if (lang == language)
return true;
}
return false;
return GetLanguage(language) == 0;
}
public int GetLanguage(int redeemLanguage) => Data[GetLanguageOffset(GetLanguageIndex(redeemLanguage))];

View file

@ -293,7 +293,7 @@ namespace PKHeX.Core
if (lang == language)
return true;
}
return false;
return GetLanguage(language) == 0;
}
public int GetLanguage(int redeemLanguage) => Data[GetLanguageOffset(GetLanguageIndex(redeemLanguage))];