Commit 791cad10 authored by mercury233's avatar mercury233

fix reading ydk

parent ea749636
...@@ -1454,6 +1454,21 @@ public class DeckManager : ServantWithCardDescription ...@@ -1454,6 +1454,21 @@ public class DeckManager : ServantWithCardDescription
} }
if (code > 100) if (code > 100)
{ {
YGOSharp.Card card = YGOSharp.CardsManager.Get(code);
if (card.Id > 0 && flag != 3)
{
if (card.IsExtraCard())
{
deck.Extra.Add(code);
deck.Deck_O.Extra.Add(code);
}
else
{
deck.Main.Add(code);
deck.Deck_O.Main.Add(code);
}
}
else
switch (flag) switch (flag)
{ {
case 1: case 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment