lib.element.contents.phase添加lib.element.content.phase修改内容

This commit is contained in:
mengxinzxz 2024-02-05 10:49:07 +08:00
parent 7fcab33cf7
commit 6b1469adbd
1 changed files with 11 additions and 4 deletions

View File

@ -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;