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.
Files changed (2) hide show
  1. package/lib/index.js +2 -5
  2. 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: { $gt: now },
7690
- // 修改为大于当前时间
7686
+ respawnTime: { $lte: now },
7687
+ // 修改为小于等于当前时间
7691
7688
  isActive: false
7692
7689
  }).execute();
7693
7690
  for (const group of expiredGroups) {
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.28",
4
+ "version": "1.6.29",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [