mirror of
https://github.com/kwsch/PKHeX
synced 2024-09-20 14:21:59 +00:00
Ban more BDSP egg moves before HOME
https: //github.com/kwsch/UnityDPtools/pull/2 Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
This commit is contained in:
parent
38a4135bcd
commit
1e0ac7fb26
3 changed files with 28 additions and 2 deletions
Binary file not shown.
26
Tests/PKHeX.Core.Tests/Legality/TempTests.cs
Normal file
26
Tests/PKHeX.Core.Tests/Legality/TempTests.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System.Linq;
|
||||
using FluentAssertions;
|
||||
using Xunit;
|
||||
using static PKHeX.Core.Species;
|
||||
using static PKHeX.Core.Move;
|
||||
|
||||
namespace PKHeX.Core.Tests.Legality;
|
||||
|
||||
public static class TempTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData(Taillow, Boomburst)]
|
||||
[InlineData(Plusle, TearfulLook)] [InlineData(Minun, TearfulLook)]
|
||||
[InlineData(Luvdisc, HealPulse)]
|
||||
[InlineData(Starly, Detect)]
|
||||
[InlineData(Chatot, Boomburst)] [InlineData(Chatot, Encore)]
|
||||
[InlineData(Spiritomb, FoulPlay)]
|
||||
public static void CanLearnEggMoveBDSP(Species species, Move move)
|
||||
{
|
||||
MoveEgg.GetEggMoves(8, (int)species, 0, GameVersion.BD).Contains((int)move).Should().BeFalse();
|
||||
|
||||
var pb8 = new PB8 { Species = (int)species };
|
||||
var encs = EncounterMovesetGenerator.GenerateEncounters(pb8, new[] { (int)move }, GameVersion.BD);
|
||||
encs.Any().Should().BeFalse("Unavailable until HOME update supports BD/SP.");
|
||||
}
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<LangVersion>9</LangVersion>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<LangVersion>10</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
|
|
Loading…
Reference in a new issue