Commit 420b2123 authored by SherryChaos's avatar SherryChaos

fix deck sync bug

parent 65adc9ae
......@@ -11,7 +11,7 @@ MDPro3 v1.1.6.2更新:
3.新的Mod场地:<link="https://www.nexusmods.com/yugiohmasterduel/mods/1731"><#0080F8><u>Skyscraper Parking Lot</u></color></link>。
4.修复场地设置不为[随机]的情况下,其他选项设为[与场地一致]时无法进入决斗的错误 。
5.修复本地主机不能被外网连接的错误。
6.TODO: 修复重命名卡组后会同步原卡组名卡组的错误。
6.修复重命名卡组后会同步原卡组名卡组的错误。
MDPro3 v1.1.6.1更新:
1.修复部分卡片效果特效[灰流丽等]不播放的错误;
......
......@@ -381,6 +381,7 @@ namespace MDPro3
public static async Task<bool> SyncDeck(string deckId, string deckName, string ydk, bool showHint = true)
{
var deck = GetOnlineDeckByID(deckId);
if (deck == null)
{
string api = url + getIdAPI;
......@@ -408,7 +409,6 @@ namespace MDPro3
}
else
{
Debug.Log("Sync Deck Found: " + deck.deckName +"-" + deckName);
deck.deckName = deckName;
}
......
......@@ -1426,6 +1426,7 @@ namespace MDPro3
deck.author = this.deck.author;
else
deck.author = Deck.defaultDeckAuthor;
deck.deckId = this.deck.deckId;
return deck;
}
......
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