koishi-plugin-smmcat-gensokyo 0.0.43 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +3 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -3759,6 +3759,9 @@ function apply(ctx, config) {
3759
3759
  const selectMonster = areaInfo.monster.find((i) => i.name == goal);
3760
3760
  await BattleData.createBattleByMonster(session, [selectMonster]);
3761
3761
  } else {
3762
+ if (!areaInfo.monster?.length) {
3763
+ return `没有在该区域找到该怪物。`;
3764
+ }
3762
3765
  const selectMonster = areaInfo.monster;
3763
3766
  await Queue.add(async () => await BattleData.createBattleByMonster(session, selectMonster));
3764
3767
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-smmcat-gensokyo",
3
3
  "description": "名为《幻想乡》的文字冒险游戏",
4
- "version": "0.0.43",
4
+ "version": "0.0.44",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [