mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-27 09:54:44 -05:00
Detect event contest affection boost (#1880)
* Detect event contest affection boost * Re-order check
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user