koishi-plugin-ggcevo-game 1.6.8 → 1.6.9
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 +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -6780,7 +6780,7 @@ async function updateDatabaseWithStats(ctx, stats) {
|
|
|
6780
6780
|
}
|
|
6781
6781
|
if (stats.armorChange !== 0) {
|
|
6782
6782
|
const newarmor = boss.armorReductionLayers + stats.armorChange;
|
|
6783
|
-
updateData.armorReductionLayers = newarmor;
|
|
6783
|
+
updateData.armorReductionLayers = Math.max(0, newarmor);
|
|
6784
6784
|
}
|
|
6785
6785
|
if (stats.skillStacksChanged !== 0) {
|
|
6786
6786
|
const newStacks = boss.skillStacks + stats.skillStacksChanged;
|