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.
- package/lib/index.js +3 -0
- 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
|
}
|