刘协【坠庭】bug修复

This commit is contained in:
mengxinzxz 2023-09-08 01:38:31 +08:00 committed by GitHub
parent d970df7843
commit 2dcd05b229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 11 deletions

View File

@ -435,19 +435,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
hiddenCard:function(player,name){
if(name!='wuxie'||!lib.inpile.contains('wuxie')) return false;
if(!['wei','qun'].contains(player.group)) return false;
var event=_status.event;
if(!event||event.type!='wuxie'||!event.filterCard) return false;
var target=event.getParent(4)[event.getParent(4).name=='phaseJudge'?player:target];
var cardx=event.getParent(4).card;
return target&&cardx&&target!=player&&target.hasZhuSkill('twzhuiting')&&player.countCards('hes',card=>_status.connectMode||get.color(card,player)==get.color(cardx));
return game.hasPlayer(target=>target!=player&&target.hasZhuSkill('twzhuiting'));
},
audio:'twzhuiting',
forceaudio:true,
enable:'chooseToUse',
filter:function(event,player){
if(!['wei','qun'].contains(player.group)) return false;
if(event.type!='wuxie'||!event.filterCard({name:'wuxie'},player,event)||!lib.inpile.contains('wuxie')) return false;
var target=event.getParent(4)[event.getParent(4).name=='phaseJudge'?player:target];
if(!event.filterCard({name:'wuxie'},player,event)||!lib.inpile.contains('wuxie')) return false;
var target=event.getParent(4)[event.getParent(4).name=='phaseJudge'?'player':'target'];
var cardx=event.getParent(4).card;
return target&&cardx&&target!=player&&target.hasZhuSkill('twzhuiting')&&player.countCards('hes',card=>get.color(card,player)==get.color(cardx));
},
@ -455,14 +451,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var event=_status.event;
return get.color(card,player)==get.color(event.getParent(4).card);
},
viewAsFilter:function(player){
return lib.skill.twzhuiting.subSkill.global.filter(_status.event,player);
},
viewAs:{name:'wuxie'},
position:'hes',
prompt:function(){
var event=_status.event;
return '将一张'+get.translation(get.color(event.getParent(4).card))+'牌当作【无懈可击】对'+get.translation(event.getParent(4)[event.getParent(4).name=='phaseJudge'?player:target])+'使用';
return '将一张'+get.translation(get.color(event.getParent(4).card))+'牌当作【无懈可击】对'+get.translation(event.getParent(4)[event.getParent(4).name=='phaseJudge'?'player':'target'])+'使用';
},
check:function(card){
return 8-get.value(card);