xianding.js回滚修复

This commit is contained in:
mengxinzxz 2023-08-30 21:58:17 +08:00 committed by GitHub
parent bef480bde4
commit 9c8c672ce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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=='_yongjian_zengyu') return false;
if(evtx.giver||evtx.getParent().name=='gift') 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&&current.hasHistory('gain',evt=>{
if(evt.giver!=target||evt.getParent().name=='_yongjian_zengyu') return false;
if(evt.giver!=target||evt.getParent().name=='gift') 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=='_yongjian_zengyu') return false;
if(evtx.giver||evtx.getParent().name=='gift') 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&&current.hasHistory('gain',evt=>{
if(evt.giver!=target||evt.getParent().name=='_yongjian_zengyu') return false;
if(evt.giver!=target||evt.getParent().name=='gift') return false;
return evt.cards.length;
})) renzhi=true;
});