From 4ba09045b84895dcf7de5a75af01b83657580bfc Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Wed, 30 Aug 2023 01:15:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=AD=E7=85=A7characterReplace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加郭照的characterReplace --- character/xianding.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/character/xianding.js b/character/xianding.js index 19a7811f6..646b7b813 100644 --- a/character/xianding.js +++ b/character/xianding.js @@ -4884,7 +4884,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } else if(evt.type=='gain'){ var evtx=evt.getParent(); - if(evtx.giver||evtx.getParent().name=='gift') return false; + if(evtx.giver||evtx.getParent().name=='_yongjian_zengyu') return false; var cards=evtx.getg(target); if(!cards.length) return false; var cards2=evtx.getl(current).cards2; @@ -4895,7 +4895,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return false; })) guojue=true; if(!renzhi&¤t.hasHistory('gain',evt=>{ - if(evt.giver!=target||evt.getParent().name=='gift') return false; + if(evt.giver!=target||evt.getParent().name=='_yongjian_zengyu') return false; return evt.cards.length; })) renzhi=true; }); @@ -4927,7 +4927,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } else if(evt.type=='gain'){ var evtx=evt.getParent(); - if(evtx.giver||evtx.getParent().name=='gift') return false; + if(evtx.giver||evtx.getParent().name=='_yongjian_zengyu') return false; var cards=evtx.getg(target); if(!cards.length) return false; var cards2=evtx.getl(current).cards2; @@ -4938,7 +4938,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return false; })) guojue=true; if(!renzhi&¤t.hasHistory('gain',evt=>{ - if(evt.giver!=target||evt.getParent().name=='gift') return false; + if(evt.giver!=target||evt.getParent().name=='_yongjian_zengyu') return false; return evt.cards.length; })) renzhi=true; }); @@ -11486,6 +11486,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fengfangnv:['re_fengfangnv','fengfangnv'], luotong:['luotong','dc_luotong'], dc_wangchang:['dc_wangchang','tw_wangchang'], + guozhao:['guozhao','xin_guozhao'], }, translate:{ puyuan:'蒲元',