mirror of
https://github.com/Shu-Ying/noname-shuying.git
synced 2026-10-21 06:39:59 +08:00
fixed # 补全梦三怪物、卡牌
fixed # 修复天书乱斗中,过关技能不会重置次数的问题
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user