Update tw.js

This commit is contained in:
mengxinzxz 2023-09-08 00:31:49 +08:00 committed by GitHub
parent 7de02d9138
commit cd3b78a94a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -437,9 +437,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
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(2).player;
var target=event.getParent(4)[event.getParent(4).name=='phaseJudge'?player:target];
var cardx=event.getParent(4).card;
return target&&cardx&&get.type2(cardx)=='trick'&&target!=player&&target.hasZhuSkill('twzhuiting')&&player.countCards('hes',card=>_status.connectMode||get.color(card,player)==get.color(cardx));
return target&&cardx&&target!=player&&target.hasZhuSkill('twzhuiting')&&player.countCards('hes',card=>_status.connectMode||get.color(card,player)==get.color(cardx));
},
audio:'twzhuiting',
forceaudio:true,
@ -447,9 +447,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
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(2).player;
var target=event.getParent(4)[event.getParent(4).name=='phaseJudge'?player:target];
var cardx=event.getParent(4).card;
return target&&cardx&&get.type2(cardx)=='trick'&&target!=player&&target.hasZhuSkill('twzhuiting')&&player.countCards('hes',card=>get.color(card,player)==get.color(cardx));
return target&&cardx&&target!=player&&target.hasZhuSkill('twzhuiting')&&player.countCards('hes',card=>get.color(card,player)==get.color(cardx));
},
filterCard:function(card,player){
var event=_status.event;