From 90159276b85fc7bf545895ad215a566b4db90c05 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Mon, 9 Oct 2023 16:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E5=90=88=E4=BA=8B=E4=BB=B6=E7=A9=B6?= =?UTF-8?q?=E6=9E=81=E5=A4=A7=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp.js | 4 +- character/sp2.js | 7 +- character/yijiang.js | 11 +-- game/game.js | 222 +++++++++++++++++++++++++++++++++++++++++-- mode/guozhan.js | 3 +- 5 files changed, 224 insertions(+), 23 deletions(-) diff --git a/character/sp.js b/character/sp.js index 365e5e325..72f66f354 100755 --- a/character/sp.js +++ b/character/sp.js @@ -4054,9 +4054,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ 'step 0' player.damage('nosource'); 'step 1' - var next=player.phaseUse(); - event.next.remove(next); - trigger.next.push(next); + trigger.phaseList.splice(trigger.num,0,'phaseUse|oldianjun'); }, }, olkangrui:{ diff --git a/character/sp2.js b/character/sp2.js index 8635c4118..e72035f52 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -8836,7 +8836,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } }, zongkui:{ - trigger:{player:'phaseBefore',global:'roundStart'}, + trigger:{ + player:'phaseBeforeEnd', + global:'roundStart', + }, direct:true, audio:2, audioname:['tw_beimihu'], @@ -10208,7 +10211,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ zongkui:'纵傀', zongkui_mark:'纵傀', zongkui_mark_bg:'傀', - zongkui_info:'回合开始时,你可以指定一名未拥有“傀”标记的其他角色,令其获得一枚“傀”标记。每轮游戏开始时,你指定一名体力值最少且没有“傀”标记的其他角色,令其获得一枚“傀”标记。', + zongkui_info:'回合开始前,你可以指定一名未拥有“傀”标记的其他角色,令其获得一枚“傀”标记。一轮游戏开始时,你指定一名体力值最少且没有“傀”标记的其他角色,令其获得一枚“傀”标记。', guju:'骨疽', guju_info:'锁定技,拥有“傀”标记的角色受到伤害后,你摸一张牌。', baijia:'拜假', diff --git a/character/yijiang.js b/character/yijiang.js index 3135aa285..f430bfe6e 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -2508,10 +2508,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ ol_guansuo:'dangxian_guansuo', }, content:function(){ - var next=player.phaseUse(); - next.xindangxian=true; - event.next.remove(next); - trigger.next.push(next); + trigger.phaseList.splice(trigger.num,0,'phaseUse|xindangxian'); }, group:'xindangxian_rewrite', subSkill:{ @@ -2520,7 +2517,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ forced:true, popup:false, filter:function(kagari){ - return kagari.xindangxian==true; + return kagari._extraPhaseReason=='xindangxian'; }, content:function(){ 'step 0' @@ -7664,9 +7661,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ audio:2, audioname:['guansuo'], content:function(){ - var next=player.phaseUse(); - event.next.remove(next); - trigger.next.push(next); + trigger.phaseList.splice(trigger.num,0,'phaseUse|dangxian'); } }, longyin:{ diff --git a/game/game.js b/game/game.js index d9063bf2f..0d9300114 100644 --- a/game/game.js +++ b/game/game.js @@ -14372,7 +14372,7 @@ next.setContent(info.content); next.skillHidden=event.skillHidden; if(info.forceDie) next.forceDie=true; - if(info.forceOut||event.skill=='_turnover') next.includeOut=true; + if(info.forceOut) next.includeOut=true; "step 4" if(player._hookTrigger){ for(var i=0;i0){ + game.players[i].outCount--; + if(game.players[i].outCount==0&&!game.players[i].outSkills){ + game.players[i].in(); + } + } + } + event.trigger('roundStart'); + } + } + _status.globalHistory.push({ + cardMove:[], + custom:[], + useCard:[], + changeHp:[], + everything:[], + }); + var players=game.players.slice(0).concat(game.dead); + for(var i=0;igame.players.length*num&&game.showIdentity){ + if(!_status.video) player.popup('显示身份'); + _status.identityShown=true; + game.showIdentity(false); + } + } + player.ai.tempIgnore=[]; + if(ui.land&&ui.land.player==player){ + game.addVideo('destroyLand'); + ui.land.destroy(); + } + 'step 6' + //规则集中的“回合开始后⑦”,国战武将明置武将牌 + event.trigger('phaseBeginStart'); + 'step 7' + //规则集中的“回合开始后⑨”,进行当先,化身等操作 + //没有⑧ 因为⑧用不到 + event.trigger('phaseBegin'); + //阶段部分 + 'step 8' + if(player.isIn()&&num1){ + next._extraPhaseReason=phase[1]; + } + if(event.currentPhase=='phaseDraw'||event.currentPhase=='phaseDiscard'){ + if(!player.noPhaseDelay){ + if(player==game.me){ + game.delay(); + } + else{ + game.delayx(); + } + } + } + } + 'step 10' + if(event.currentPhase=='phaseUse'){ + game.broadcastAll(function(){ + if(ui.tempnowuxie){ + ui.tempnowuxie.close(); + delete ui.tempnowuxie; + } + }); + delete player._noSkill; + } + event.num++; + 'step 11' + if(event.num