From ecba8d4dcc98459a8f4465f03955c1d7bb37e59f Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Tue, 24 Oct 2023 08:47:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A8=A1=E5=BC=8F=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E6=8A=80=E8=83=BD=E4=B8=8D=E5=BD=B1=E5=93=8DdynamicTr?= =?UTF-8?q?anslate=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game/game.js b/game/game.js index d01e14879..1ab8264dd 100644 --- a/game/game.js +++ b/game/game.js @@ -41758,16 +41758,19 @@ if(info.forbid&&info.forbid.contains(mode)){ lib.skill[i]={}; if(lib.translate[iInfo]) lib.translate[iInfo]='此模式下不可用'; + if(lib.dynamicTranslate[i]) lib.dynamicTranslate[i]=()=>'此模式下不可用'; return; } if(info.mode&&info.mode.contains(mode)==false){ lib.skill[i]={}; if(lib.translate[iInfo]) lib.translate[iInfo]='此模式下不可用'; + if(lib.dynamicTranslate[i]) lib.dynamicTranslate[i]=()=>'此模式下不可用'; return; } if(info.available&&info.available(mode)==false){ lib.skill[i]={}; if(lib.translate[iInfo]) lib.translate[iInfo]='此模式下不可用'; + if(lib.dynamicTranslate[i]) lib.dynamicTranslate[i]=()=>'此模式下不可用'; return; } if(info.viewAs&&typeof info.viewAs!='function'){