mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-24 04:26:41 -05:00
Detect event contest affection boost (#1880)
* Detect event contest affection boost * Re-order check
This commit is contained in:
parent
4d3877bf7f
commit
ff675ed6e5
|
|
@ -1581,7 +1581,8 @@ private CheckResult VerifyHistory()
|
|||
{
|
||||
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 New Issue
Block a user