From 7bd36ca0c80451a5e37948f5b7a5f1a653dea67e Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 26 Jul 2020 08:54:52 -0700 Subject: [PATCH] Minor clean Fix xmldoc, revert ??= because whatever nullable logic plugin I have isn't detecting this right --- PKHeX.Core/Editing/Applicators/HiddenPowerApplicator.cs | 2 +- PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/Editing/Applicators/HiddenPowerApplicator.cs b/PKHeX.Core/Editing/Applicators/HiddenPowerApplicator.cs index 427376918..34237697d 100644 --- a/PKHeX.Core/Editing/Applicators/HiddenPowerApplicator.cs +++ b/PKHeX.Core/Editing/Applicators/HiddenPowerApplicator.cs @@ -6,7 +6,7 @@ public static class HiddenPowerApplicator /// Sets the to match a provided . /// /// Pokémon to modify. - /// Desired Hidden Power typing. + /// Desired Hidden Power typing. public static void SetHiddenPower(this PKM pk, int hiddenPowerType) { var IVs = pk.IVs; diff --git a/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs b/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs index 3ac3e189e..6c7b1d2c8 100644 --- a/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs +++ b/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs @@ -294,7 +294,8 @@ private static CheckMoveResult[] ParseMoves(PKM pkm, MoveParseSource source, Leg for (int m = 0; m < 4; m++) { - res[m] ??= new CheckMoveResult(Unknown, info.Generation, Invalid, LMoveSourceInvalid, Move); + if (res[m] == null) + res[m] = new CheckMoveResult(Unknown, info.Generation, Invalid, LMoveSourceInvalid, Move); } return res; }