From 7899d8ffd27647596c4821c8f5f1ef02a298185b Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Fri, 25 Aug 2023 15:26:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B1=9F=E5=B1=B1=E5=A6=82=E6=95=85=E6=89=BF?= =?UTF-8?q?=E7=B3=BB=E5=88=97bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复承许攸【离叛】变更势力选择“取消”出错的bug 修复承孙策【诈死】不计入距离和座次计算效果不存在的bug 修复承张辽【突围】变量错误致弹窗的bug 修复承吕布【轻狡】缺少技能ai的bug --- character/jsrg.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/character/jsrg.js b/character/jsrg.js index 5988e5b4f..7120b1672 100644 --- a/character/jsrg.js +++ b/character/jsrg.js @@ -168,9 +168,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.addSkillLog('rezhiheng'); player.addSkill('jsrgzhasi_undist'); }, + derivation:'rezhiheng', subSkill:{ undist:{ - inherit:'undist', + group:'undist', charlotte:true, trigger:{ player:['useCardAfter','damageEnd'], @@ -301,7 +302,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }).set('choice',maxGroup); 'step 1' var group=result.control; - if(group=='cancel2') + if(group=='cancel2') return; player.logSkill('jsrglipan'); player.popup(group+'2',get.groupnature(group,'raw')); player.changeGroup(group); @@ -575,6 +576,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.useCard({name:name},target,cards); player.addTempSkill('jsrgqingjiao_'+name,'phaseUseAfter'); }, + ai:{ + order:7, + result:{ + target:function(player,target){ + var name=(target.countCards('h')>player.countCards('h')?'tuixinzhifu':'chenghuodajie'); + var list=[]; + if(ui.selected.cards.length) list.addArray(ui.selected.cards); + var card=get.autoViewAs({name:name},list); + return get.effect(card,target,player); + }, + }, + }, subSkill:{ tuixinzhifu:{ charlotte:true, @@ -1526,13 +1539,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){ content:function(){ 'step 0' player.chooseTarget(get.prompt('jsrgtuwei'),'获得攻击范围内任意名角色的各一张牌。然后回合结束时这些角色中未受过伤害的角色依次获得你的一张牌。',(card,player,target)=>{ - return player.inRange(current)&&target.countGainableCards(player,'he')>0; + return player.inRange(target)&&target.countGainableCards(player,'he')>0; },[1,Infinity]).set('ai',target=>{ var player=_status.event.player; - return get.effect(target,{name:'shunshou'},player,player); - }).set('damage',player.hasCard(card=>{ - return player.hasValueTarget(card)&&get.tag(card,'damage'); - },'hs')); + return get.effect(target,{name:'shunshou_copy2'},player,player); + }); 'step 1' if(result.bool){ var targets=result.targets.slice(); @@ -1831,7 +1842,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, //江山如故·起 sbyingmen:{ - forbid:['guozhan'], trigger:{ global:'phaseBefore', player:'enterGame',