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