From e1111240a77ec55855eacca0f051d5586a0f34d4 Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Sat, 7 Oct 2023 23:07:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9D=80=E7=95=8C=E8=A2=81=E6=9C=AF?= =?UTF-8?q?=E3=80=90=E8=A7=8A=E7=8E=BA=E3=80=91=E6=94=B9=E4=B8=BAhistory?= =?UTF-8?q?=E5=88=A4=E5=AE=9A=E5=A4=B1=E5=8E=BB=E4=BD=93=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp.js | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/character/sp.js b/character/sp.js index d5c31b639..8544e0034 100755 --- a/character/sp.js +++ b/character/sp.js @@ -16325,10 +16325,21 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, yjixi:{ derivation:'rewangzun', + audio:'weidi', trigger:{player:'phaseJieshuBegin'}, forced:true, filter:function(event,player){ - return player.countMark('yjixi')>=3; + if(player.phaseNumber<3) return false; + var num=0; + for(var i=player.actionHistory.length-1;i>=0;i--){ + if(!player.actionHistory[i].isMe) continue; + if(_status.globalHistory[i].changeHp.some(evt=>evt.player==player&&evt.getParent().name=='loseHp')) return false; + else{ + num++; + if(num>=3) break; + } + } + return true; }, skillAnimation:true, animationColor:'gray', @@ -16397,7 +16408,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ content:function(){ player.draw(game.countGroup()); trigger.changeToZero(); - } + }, }, xinyongsi2:{ audio:'yongsi2', @@ -16412,13 +16423,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return 8-get.value(card); }; 'step 1' - if(!result.bool){ - player.loseHp(); - var num=player.countMark('yjixi'); - if(num) player.removeMark('yjixi',num,false); - } - else player.addMark('yjixi',1,false); - } + if(!result.bool) player.loseHp(); + }, }, lianzhu:{ audio:2, @@ -24828,7 +24834,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ refuhan:'扶汉', refuhan_info:'限定技,回合开始时,你可以移去所有"梅影"标记并摸等量的牌,然后从X张蜀势力武将牌中选择并获得至多两个技能(限定技、觉醒技、隐匿技、使命技、主公技除外)。若此时你是体力值最低的角色,你回复1点体力(X为场上角色数,且X∈[4,+∞))。', yjixi:'觊玺', - yjixi_info:'觉醒技,结束阶段,若你连续三回合没有因〖庸肆〗而失去过体力,则你增加1点体力上限并回复1点体力,然后选择一项:获得技能〖妄尊〗;摸两张牌并获得当前主公的主公技。', + yjixi_info:'觉醒技,结束阶段,若你已连续三个自己回合未失去过体力,则你增加1点体力上限并回复1点体力,然后选择一项:获得技能〖妄尊〗;摸两张牌并获得当前主公的主公技。', xinyongsi:'庸肆', xinyongsi1:'庸肆', xinyongsi2:'庸肆',