mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 22:54:14 +00:00
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:
parent
7ae4e0769b
commit
d54a9ba3a9
3 changed files with 3 additions and 3 deletions
|
@ -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))];
|
||||
|
|
|
@ -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))];
|
||||
|
|
|
@ -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))];
|
||||
|
|
Loading…
Reference in a new issue