koishi-plugin-ggcevo-game 1.4.53 → 1.4.54
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 +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -7785,7 +7785,7 @@ ${validTypes.join("、")}`;
|
|
|
7785
7785
|
if (!equippedWeapon) return '请先输入"装备 武器名称"后再攻击。';
|
|
7786
7786
|
const weaponConfigEntry = Object.entries(weaponConfig).find(([_, c]) => c.id === equippedWeapon.weaponId);
|
|
7787
7787
|
const [weaponName, weaponData] = weaponConfigEntry;
|
|
7788
|
-
if (!weaponData.isantiair && targetBoss.groupId === 5) {
|
|
7788
|
+
if (!weaponData.isantiair && (targetBoss.groupId === 5 || targetBoss.groupId === 10)) {
|
|
7789
7789
|
return "您当前装备的武器无法攻击空中目标!";
|
|
7790
7790
|
}
|
|
7791
7791
|
const primaryAttackResult = await handlePrimaryAttack(
|