koishi-plugin-ggcevo-game 1.6.28 → 1.6.29
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 +2 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -7201,9 +7201,6 @@ async function testAttackFunction(ctx, session, handle, config, equippedWeapon,
|
|
|
7201
7201
|
const ignoreReduction = await handleIgnoreReductionEffects(ctx, handle, weaponName, targetBoss);
|
|
7202
7202
|
const EffectProcessor = applyPassiveEffects(targetBoss, activeBosses, weaponName, damageResult.damage, damageResult.hasCrit, ignoreReduction.ignoreRate, careerData, equippedWeapon);
|
|
7203
7203
|
const initialDamage = EffectProcessor.finalDamage;
|
|
7204
|
-
for (const name2 in battleStatsMap) {
|
|
7205
|
-
const stats = battleStatsMap[name2];
|
|
7206
|
-
}
|
|
7207
7204
|
Object.keys(battleStatsMap).forEach((key) => delete battleStatsMap[key]);
|
|
7208
7205
|
return {
|
|
7209
7206
|
initialDamage,
|
|
@@ -7686,8 +7683,8 @@ function apply(ctx, config) {
|
|
|
7686
7683
|
const now = /* @__PURE__ */ new Date();
|
|
7687
7684
|
const expiredGroups = await ctx.database.select("ggcevo_boss").where({
|
|
7688
7685
|
type: "主宰",
|
|
7689
|
-
respawnTime: { $
|
|
7690
|
-
//
|
|
7686
|
+
respawnTime: { $lte: now },
|
|
7687
|
+
// 修改为小于等于当前时间
|
|
7691
7688
|
isActive: false
|
|
7692
7689
|
}).execute();
|
|
7693
7690
|
for (const group of expiredGroups) {
|