From 6b1469adbd1013902d2308726c515169c071b6be Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Mon, 5 Feb 2024 10:49:07 +0800 Subject: [PATCH] =?UTF-8?q?lib.element.contents.phase=E6=B7=BB=E5=8A=A0lib?= =?UTF-8?q?.element.content.phase=E4=BF=AE=E6=94=B9=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/library/element/contents.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/noname/library/element/contents.js b/noname/library/element/contents.js index ec9d5f332..d322eab06 100644 --- a/noname/library/element/contents.js +++ b/noname/library/element/contents.js @@ -8,6 +8,11 @@ import { GNC as gnc } from '../../gnc/index.js'; export const Contents = { phase: [ + async (event) => { + //规则集中的“回合开始后③(处理“游戏开始时”的时机)” + //提前phaseBefore时机解决“游戏开始时”时机和“一轮开始时”先后 + event.trigger('phaseBefore'); + }, async (event, _trigger, player) => { // 初始化阶段列表 if (!event.phaseList) { @@ -82,10 +87,6 @@ export const Contents = { //规则集中的“回合开始后②(1v1武将登场专用)” event.trigger('phaseBeforeStart'); }, - async (event) => { - //规则集中的“回合开始后③(处理“游戏开始时”的时机)” - event.trigger('phaseBefore'); - }, async (event) => { //规则集中的“回合开始后④(卑弥呼〖纵傀〗的时机)” event.trigger('phaseBeforeEnd'); @@ -96,6 +97,12 @@ export const Contents = { event.cancel(); player.turnOver(); player.phaseSkipped = true; + var players = game.players.slice(0).concat(game.dead); + for (var i = 0; i < players.length; i++) { + var current = players[i]; + current.getHistory().isSkipped = true; + current.getStat().isSkipped = true; + } } else { player.phaseSkipped = false;