fixed # 补全梦三怪物、卡牌

fixed # 修复天书乱斗中,过关技能不会重置次数的问题
This commit is contained in:
2026-10-03 04:42:19 +08:00
parent b005a7ff15
commit c448da39c2
131 changed files with 5021 additions and 246 deletions
+4
View File
@@ -1,8 +1,12 @@
import { applyMengsanDebuff } from "../monsters/artifact-status.js";
export function createOpeningEffects(game, owner, refreshEnergy) {
const enemies = () => game.players.filter(player =>
player !== owner && player.isAlive() &&
player.storage?.mengsanCamp_shuying === "enemy");
const addStatus = (player, key, skill, amount) => {
if (key === "mengsanVulnerable_shuying" || key === "mengsanWeak_shuying")
return applyMengsanDebuff(player, key === "mengsanWeak_shuying" ? "weak" : "vulnerable", amount);
player.storage[key] = (player.storage[key] || 0) + amount;
player.addSkill(skill);
player.markSkill(skill);