From 4e761b21174078ec7fe78ae44940db4148e5d0f9 Mon Sep 17 00:00:00 2001 From: ZiG60020405 <47026578+zhichaoxi2006@users.noreply.github.com> Date: Sun, 2 Jun 2024 16:50:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0get.plainText=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/extra/skill.js | 12 ++++++------ character/yingbian/skill.js | 2 +- noname/get/index.js | 10 ++++++++++ 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/character/extra/skill.js b/character/extra/skill.js index 8d2cf937e..07fb96d74 100644 --- a/character/extra/skill.js +++ b/character/extra/skill.js @@ -1438,7 +1438,7 @@ const skills = { var info = lib.character[name]; if ( info[3].some(function (skill) { - var info = get.skillInfoTranslation(skill); + var info = get.plainText(get.skillInfoTranslation(skill)); if (!info.includes("【杀】")) return false; var list = get.skillCategoriesOf(skill, player); list.remove("锁定技"); @@ -1470,7 +1470,7 @@ const skills = { var name = button.link; var info = lib.character[name]; var skills = info[3].filter(function (skill) { - var info = get.skillInfoTranslation(skill); + var info = get.plainText(get.skillInfoTranslation(skill)); if (!info.includes("【杀】")) return false; var list = get.skillCategoriesOf(skill, get.player()); list.remove("锁定技"); @@ -1509,7 +1509,7 @@ const skills = { node = ui.create.buttonPresets.character(item, "character", position, noclick); const info = lib.character[item]; const skills = info[3].filter(function (skill) { - var info = get.skillInfoTranslation(skill); + var info = get.plainText(get.skillInfoTranslation(skill)); if (!info.includes("【杀】")) return false; var list = get.skillCategoriesOf(skill, get.player()); list.remove("锁定技"); @@ -1588,7 +1588,7 @@ const skills = { var maxHp = get.infoMaxHp(info[2]); if (maxHp != 1) card.distance = { attackFrom: 1 - maxHp }; var skills = info[3].filter(function (skill) { - var info = get.skillInfoTranslation(skill); + var info = get.plainText(get.skillInfoTranslation(skill)); if (!info.includes("【杀】")) return false; var list = get.skillCategoriesOf(skill, get.player()); list.remove("锁定技"); @@ -1617,10 +1617,10 @@ const skills = { if (skills.length) { for (var skill of skills) { if (lib.skill[skill].nobracket) { - append += '