koishi-plugin-ggcevo-game 1.6.72 → 1.6.74

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.
@@ -56,7 +56,7 @@ export declare function testAttackFunction(ctx: Context, session: any, handle: s
56
56
  ignoreMessage: any[];
57
57
  }>;
58
58
  export declare function createNestlingBosses(ctx: any, nestlingNames: string | string[]): Promise<any[]>;
59
- export declare function verifyFinalBlow(ctx: any, session: any, bossName: string, targetBoss: any): Promise<{
59
+ export declare function verifyFinalBlow(ctx: any, session: any, bossName: string, targetBoss: any, activeBosses: any): Promise<{
60
60
  success: boolean;
61
61
  updatedBoss?: any;
62
62
  verificationPassed?: boolean;
package/lib/index.js CHANGED
@@ -4918,7 +4918,7 @@ var passiveConfig = {
4918
4918
  derivedSkills: []
4919
4919
  },
4920
4920
  "能量黑洞": {
4921
- description: "存在能量黑洞时,受到的伤害降低20%",
4921
+ description: "亚电主宰者释放了能量黑洞,所有存活异形受到的伤害降低20%",
4922
4922
  belong: ["亚电主宰者", "亚电能者"],
4923
4923
  derivedSkills: []
4924
4924
  },
@@ -5577,6 +5577,21 @@ var ggcevoUpdates = [
5577
5577
  content: `
5578
5578
  - 增强了“异形甲壳”技能效果
5579
5579
  `.trim()
5580
+ },
5581
+ {
5582
+ version: "1.6.73",
5583
+ time: "2025-08-18",
5584
+ content: `
5585
+ - 修改铝热炸弹限制条件为只能在进入斩杀阶段之前使用
5586
+ `.trim()
5587
+ },
5588
+ {
5589
+ version: "1.6.74",
5590
+ time: "2025-08-19",
5591
+ content: `
5592
+ - 修改铝热炸弹使用限制,现在只能在目标血量≥1000时使用
5593
+ - 修改斩杀阶段,现在当主宰血量≤2000,且没有复活类技能,且无子代存活的情况下,才会进入斩杀阶段
5594
+ `.trim()
5580
5595
  }
5581
5596
  ];
5582
5597
  function compareVersions(a, b) {
@@ -5985,10 +6000,10 @@ async function applyItemEffect(ctx, session, handle, itemConfig2, target) {
5985
6000
  message: `至少攻击一次后才能使用该物品。`
5986
6001
  };
5987
6002
  }
5988
- if (targetBoss.HP === 1) {
6003
+ if (targetBoss.HP <= 1e3) {
5989
6004
  return {
5990
6005
  success: false,
5991
- message: `目标「${target}」血量已是1点,无法使用${itemName}。`
6006
+ message: `目标「${target}」血量已低于1000,无法使用${itemName}。`
5992
6007
  };
5993
6008
  }
5994
6009
  let baseDamage = 100;
@@ -7346,14 +7361,16 @@ async function createNestlingBosses(ctx, nestlingNames) {
7346
7361
  return createdBosses;
7347
7362
  }
7348
7363
  __name(createNestlingBosses, "createNestlingBosses");
7349
- async function verifyFinalBlow(ctx, session, bossName, targetBoss) {
7364
+ async function verifyFinalBlow(ctx, session, bossName, targetBoss, activeBosses) {
7350
7365
  const isDominationBoss = targetBoss.type === "主宰";
7351
7366
  const isLowHealth = targetBoss.HP < 2e3;
7352
7367
  const forbiddenSkills = ["求生本能I", "求生本能II", "复苏"];
7353
7368
  const hasResurrectionSkill = forbiddenSkills.some(
7354
7369
  (skill) => targetBoss.skills.includes(skill)
7355
7370
  );
7356
- if (!(isDominationBoss && isLowHealth && !hasResurrectionSkill)) {
7371
+ const isIsolated = activeBosses.length === 1 && // 活跃Boss仅1个
7372
+ activeBosses[0].name === targetBoss.name;
7373
+ if (!(isDominationBoss && isLowHealth && !hasResurrectionSkill && isIsolated)) {
7357
7374
  return {
7358
7375
  success: true,
7359
7376
  updatedBoss: targetBoss,
@@ -10284,8 +10301,9 @@ ${discountDetails.join("\n")}`;
10284
10301
  ctx,
10285
10302
  session,
10286
10303
  bossName,
10287
- targetBoss
10304
+ targetBoss,
10288
10305
  // 当前目标BOSS
10306
+ activeBosses
10289
10307
  );
10290
10308
  if (!verification.success) {
10291
10309
  return "攻击已取消";
@@ -11471,8 +11489,6 @@ ${discountReason}` : "",
11471
11489
  });
11472
11490
  ctx.command("ggcevo/使用 [itemName] [target]").action(async (argv, itemName, target) => {
11473
11491
  const session = argv.session;
11474
- let bossEventBroadcast = null;
11475
- let cleanerRewardBroadcast = null;
11476
11492
  const Curfew = fixedCurfewCheck(session, config);
11477
11493
  if (!Curfew) return "⛔ 宵禁时段 (18:00-24:00) 禁止在群聊中使用咕咕之战指令。\n请添加C.O.R.E为好友使用私聊指令,好友验证信息为【咕咕之战】。";
11478
11494
  const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.6.72",
4
+ "version": "1.6.74",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [