koishi-plugin-ggcevo-game 1.2.45 → 1.2.46

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 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1118,7 +1118,7 @@ function apply(ctx, config) {
1118
1118
  }, "handleColdAdaptationImmunity"),
1119
1119
  // 求生本能处理
1120
1120
  handleSurvivalInstinct: /* @__PURE__ */ __name(function(targetBoss, currentHP, maxHP) {
1121
- if (currentHP > 0) return null;
1121
+ if (currentHP > 1) return null;
1122
1122
  let effect = null;
1123
1123
  if (targetBoss.skills.includes("求生本能I")) {
1124
1124
  effect = { heal: maxHP * 0.3, skill: "求生本能I" };
@@ -1139,8 +1139,8 @@ function apply(ctx, config) {
1139
1139
  handlePassives: /* @__PURE__ */ __name(async function(ctx2, targetBoss, initialDamage, currentHP, maxHP, weaponName, baseDamage, activeBosses, bossGroup) {
1140
1140
  let messages = [];
1141
1141
  let skillUpdates = [];
1142
- if (currentHP <= 0) {
1143
- return { currentHP, messages: [], skillUpdates: [] };
1142
+ if (currentHP <= 0 && !targetBoss.skills.includes("求生本能I") && !targetBoss.skills.includes("求生本能II")) {
1143
+ return { currentHP, messages: [], skillUpdates: [], initialDamage };
1144
1144
  }
1145
1145
  const frostEvoResult = this.handleFrostEvolution(targetBoss, weaponName, baseDamage, currentHP, maxHP);
1146
1146
  if (frostEvoResult) {
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.2.45",
4
+ "version": "1.2.46",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [