mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-10 16:35:57 -05:00
Minor clean
Fix xmldoc, revert ??= because whatever nullable logic plugin I have isn't detecting this right
This commit is contained in:
@@ -6,7 +6,7 @@ public static class HiddenPowerApplicator
|
||||
/// Sets the <see cref="PKM.IVs"/> to match a provided <see cref="hiddenPowerType"/>.
|
||||
/// </summary>
|
||||
/// <param name="pk">Pokémon to modify.</param>
|
||||
/// <param name="hptype">Desired Hidden Power typing.</param>
|
||||
/// <param name="hiddenPowerType">Desired Hidden Power typing.</param>
|
||||
public static void SetHiddenPower(this PKM pk, int hiddenPowerType)
|
||||
{
|
||||
var IVs = pk.IVs;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user