mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-16 00:58:01 +00:00
Detect event contest affection boost (#1880)
* Detect event contest affection boost * Re-order check
This commit is contained in:
parent
4d3877bf7f
commit
ff675ed6e5
1 changed files with 2 additions and 1 deletions
|
@ -1581,7 +1581,8 @@ namespace PKHeX.Core
|
|||
{
|
||||
if (pkm.OT_Friendship != PersonalTable.AO[EncounterMatch.Species].BaseFriendship)
|
||||
return new CheckResult(Severity.Invalid, V132, CheckIdentifier.History);
|
||||
if (pkm.OT_Affection != 0)
|
||||
// ORAS contests mistakenly apply 20 affection to the OT instead of the current handler's value
|
||||
if (pkm.OT_Affection != 0 && ((pkm.AO || !pkm.IsUntraded) && (pkm.OT_Affection == 255 || pkm.OT_Affection % 20 != 0)))
|
||||
return new CheckResult(Severity.Invalid, V133, CheckIdentifier.History);
|
||||
if (pkm.CurrentHandler != 1)
|
||||
return new CheckResult(Severity.Invalid, V134, CheckIdentifier.History);
|
||||
|
|
Loading…
Reference in a new issue