diff --git a/Advisor/AdvisorPlugin.cs b/Advisor/AdvisorPlugin.cs index d85004d..02adaec 100644 --- a/Advisor/AdvisorPlugin.cs +++ b/Advisor/AdvisorPlugin.cs @@ -80,8 +80,7 @@ public void OnUpdate() { } - public Version Version => new Version(1, 3, 3); - + public Version Version => new Version(1, 3, 4); public async Task CheckForUpdate() { var latest = await Github.CheckForUpdate("icetbr", "Advisor", Version); diff --git a/Advisor/ExtensionMethods.cs b/Advisor/ExtensionMethods.cs index 0edc783..aae717f 100644 --- a/Advisor/ExtensionMethods.cs +++ b/Advisor/ExtensionMethods.cs @@ -69,7 +69,7 @@ public static int CountUnion(this Deck thisDeck, IList cards) public static int GetPlayedGames(this Deck thisDeck) { string[] infos = thisDeck.Note.Split('-'); - if (infos.Length <= 0) return 0; + if (infos.Length <= 1) return 0; var success = int.TryParse(infos[1], out int result); return success ? result : 0; } diff --git a/Advisor/Properties/AssemblyInfo.cs b/Advisor/Properties/AssemblyInfo.cs index e19359b..7ca4dae 100644 --- a/Advisor/Properties/AssemblyInfo.cs +++ b/Advisor/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.3.3.0")] -[assembly: AssemblyFileVersion("1.3.3.0")] \ No newline at end of file +[assembly: AssemblyVersion("1.3.4.0")] +[assembly: AssemblyFileVersion("1.3.4.0")] \ No newline at end of file