From 4d0987119afd8edbfb0bb4d3356e5928785a54dc Mon Sep 17 00:00:00 2001 From: BauxiteAl <3117254928@qq.com> Date: Mon, 2 Oct 2023 20:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=97=E8=9B=AE=E3=80=81?= =?UTF-8?q?=E4=B8=87=E7=AE=AD=E8=AE=A9=E5=85=B6=E6=94=AF=E6=8C=81=E5=92=8C?= =?UTF-8?q?=E6=9D=80/=E5=86=B3=E6=96=97=E4=B8=80=E6=A0=B7=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E9=A2=9D=E5=A4=96=E6=89=93=E5=87=BA=E4=B8=80=E5=BC=A0?= =?UTF-8?q?=E7=89=8C=E5=93=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- card/standard.js | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/card/standard.js b/card/standard.js index f6e4152c9..185a8788b 100644 --- a/card/standard.js +++ b/card/standard.js @@ -888,10 +888,17 @@ game.import('card',function(lib,game,ui,get,ai,_status){ reverseOrder:true, content:function(){ "step 0" + if(!event.shaReq) event.shaReq={}; + if(typeof event.shaReq[target.playerid]!='number') event.shaReq[target.playerid]=1; + event.shaRequired=event.shaReq[target.playerid]; if(typeof event.baseDamage!='number') event.baseDamage=1; + "step 1" if(event.directHit) event._result={bool:false}; else{ var next=target.chooseToRespond({name:'sha'}); + if(event.shaRequired>1){ + next.set('prompt2','共需打出'+event.shaRequired+'张杀'); + } next.set('ai',function(card){ var evt=_status.event.getParent(); if(get.damageEffect(evt.target,evt.player,evt.target)>=0) return 0; @@ -901,10 +908,14 @@ game.import('card',function(lib,game,ui,get,ai,_status){ }); next.autochoose=lib.filter.autoRespondSha; } - "step 1" + "step 2" if(result.bool==false){ target.damage(); } + else{ + event.shaRequired--; + if(event.shaRequired>0) event.goto(1); + } }, ai:{ wuxie:function(target,card,player,viewer){ @@ -960,10 +971,17 @@ game.import('card',function(lib,game,ui,get,ai,_status){ }, content:function(){ "step 0" + if(!event.shanReq) event.shanReq={}; + if(typeof event.shanReq[target.playerid]!='number') event.shanReq[target.playerid]=1; + event.shanRequired=event.shanReq[target.playerid]; if(typeof event.baseDamage!='number') event.baseDamage=1; + "step 1" if(event.directHit) event._result={bool:false}; else{ var next=target.chooseToRespond({name:'shan'}); + if(event.shanRequired>1){ + next.set('prompt2','共需打出'+event.shanRequired+'张闪'); + } next.set('ai',function(card){ var evt=_status.event.getParent(); if(get.damageEffect(evt.target,evt.player,evt.target)>=0) return 0; @@ -976,10 +994,14 @@ game.import('card',function(lib,game,ui,get,ai,_status){ }); next.autochoose=lib.filter.autoRespondShan; } - "step 1" + "step 2" if(result.bool==false){ target.damage(); } + else{ + event.shanRequired--; + if(event.shanRequired>0) event.goto(1); + } }, ai:{ wuxie:function(target,card,player,viewer){