Skip to content

Commit

Permalink
- fix import from showdown
Browse files Browse the repository at this point in the history
  • Loading branch information
santacrab2 committed Oct 11, 2023
1 parent 576648b commit 68fcb15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pktabs/PKTab.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace PKHeXMAUI;

public partial class MainPage : ContentPage
{
public static string Version = "v23.09.25";
public static string Version = "v23.10.6";
public bool SkipTextChange = false;
public static int[] NoFormSpriteSpecies = new[] { 664, 665, 744, 982, 855, 854, 869,892,1012,1013 };
public bool FirstLoad = true;
Expand Down Expand Up @@ -61,7 +61,7 @@ public MainPage()
public static string itemspriteurl = "";
public static void SetSettings()
{
APILegality.EnableDevMode = true;

APILegality.SetAllLegalRibbons = PluginSettings.SetAllLegalRibbons;
APILegality.UseTrainerData = false;
APILegality.AllowTrainerOverride = true;
Expand Down Expand Up @@ -702,7 +702,7 @@ public async void ImportShowdown(object sender, EventArgs e)
var set = new ShowdownSet(await Clipboard.GetTextAsync());
var result = sav.GetLegalFromSet(set);
var pkm = result.Created;
if(result.Status == LegalizationResult.Regenerated)
if(new LegalityAnalysis(pkm).Valid)
{
pk = pkm;
applymainpkinfo(pk);
Expand Down

0 comments on commit 68fcb15

Please sign in to comment.