mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 17:15:21 -05:00
Remove unnecessary logic
return/frustration not present in these games; no need to check this
This commit is contained in:
@@ -87,17 +87,8 @@ protected override void SetPKM(PKM pkm)
|
||||
{
|
||||
var pk = (PB7)pkm;
|
||||
// Apply to this Save File
|
||||
int CT = pk.CurrentHandler;
|
||||
var Date = DateTime.Now;
|
||||
pk.Trade(this, Date.Day, Date.Month, Date.Year);
|
||||
if (CT != pk.CurrentHandler) // Logic updated Friendship
|
||||
{
|
||||
// Copy over the Friendship Value only under certain circumstances
|
||||
if (pk.Moves.Contains(216)) // Return
|
||||
pk.CurrentFriendship = pk.OppositeFriendship;
|
||||
else if (pk.Moves.Contains(218)) // Frustration
|
||||
pk.CurrentFriendship = pk.OppositeFriendship;
|
||||
}
|
||||
pk.RefreshChecksum();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user