diff --git a/noname/ui/create/menu/pages/cardPackMenu.js b/noname/ui/create/menu/pages/cardPackMenu.js index f90751fc0..a3302da4b 100644 --- a/noname/ui/create/menu/pages/cardPackMenu.js +++ b/noname/ui/create/menu/pages/cardPackMenu.js @@ -641,8 +641,10 @@ export const cardPackMenu = function (connectMenu) { return function (packName) { // 判断菜单栏有没有加载过这个卡牌包 if ([...start.firstChild.children].map(node => node.mode).includes(packName)) return; - // 单机模式下显示不在lib.config.all.cards里的卡牌包 - if (!lib.config.all.cards.includes(packName)) createModeConfig(packName, start.firstChild); - if (connectMenu) lib.connectCardPack.add(packName); + // 显示不是无名杀自带的卡牌包 + if (!lib.connectCardPack.includes(packName) && !lib.config.all.cards.includes(packName)) { + createModeConfig(packName, start.firstChild, node1); + if (connectMenu) lib.connectCardPack.add(packName); + } } }; \ No newline at end of file diff --git a/noname/ui/create/menu/pages/characterPackMenu.js b/noname/ui/create/menu/pages/characterPackMenu.js index c24bdd51d..4b7cd3b13 100644 --- a/noname/ui/create/menu/pages/characterPackMenu.js +++ b/noname/ui/create/menu/pages/characterPackMenu.js @@ -521,8 +521,10 @@ export const characterPackMenu = function (connectMenu) { return function (packName) { // 判断菜单栏有没有加载过这个武将包 if ([...start.firstChild.children].map(node => node.mode).includes(packName)) return; - // 单机模式下显示不在lib.config.all.characters里的武将包 - if (!characterlist.includes(packName)) createModeConfig(packName, start.firstChild, node1); - if (connectMenu) lib.connectCharacterPack.add(packName); + // 显示不是无名杀自带的武将包 + if (!lib.connectCharacterPack.includes(packName) && !lib.config.all.characters.includes(packName)) { + createModeConfig(packName, start.firstChild, node1); + if (connectMenu) lib.connectCharacterPack.add(packName); + } } }; \ No newline at end of file