Browse Source

去掉游戏数据加载失败就完全中断的设定

tags/v26.4
枫谷剑仙 3 years ago
parent
commit
a8317b3aca
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      script.js

+ 2
- 1
script.js View File

@@ -4321,7 +4321,8 @@ function editBoxChangeMonId(id) {
if (!card) { //如果搜不到怪物就直接返回,不做任何操作
const errorMsg = "The game data has not been loaded successfully.\n游戏数据尚未加载成功。";
alert(errorMsg);
throw new Error(errorMsg);
console.error(errorMsg);
return;
}
if (card?.id === 0) {
id = 0;


Loading…
Cancel
Save