Skip to content

Commit

Permalink
Minor fix for deck load
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmfinol committed Jul 8, 2024
1 parent 49ec9bd commit a0ca209
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ private void LoadTxt(string line)
tokens.RemoveAt(0);
}

if (tokens.Count > 0 && line.Contains("(") && line.EndsWith(")"))
if (tokens.Count > 0 && line.Contains(" (") && line.EndsWith(")"))
{
var indexOfParens = line.LastIndexOf("(", StringComparison.Ordinal);
var inParens = line.Substring(indexOfParens + 1, line.Length - (indexOfParens + 2));
var indexOfParens = line.LastIndexOf(" (", StringComparison.Ordinal);
var inParens = line.Substring(indexOfParens + 2, line.Length - (indexOfParens + 3));
if (((UnityCardGame) SourceGame).Sets.ContainsKey(inParens))
{
cardSet = inParens;
Expand Down

0 comments on commit a0ca209

Please sign in to comment.