This commit is contained in:
mengxinzxz 2024-01-03 09:14:39 +08:00
parent d79a442f38
commit 19d2eb4db3
1 changed files with 5 additions and 3 deletions

View File

@ -5203,6 +5203,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
group:'mbdaoshu_use', group:'mbdaoshu_use',
subSkill:{ subSkill:{
use:{ use:{
audio:'mbdaoshu1',
enable:'phaseUse', enable:'phaseUse',
filter:function(event,player){ filter:function(event,player){
return game.hasPlayer(target=>target!=player&&target.countCards('h')>2); return game.hasPlayer(target=>target!=player&&target.countCards('h')>2);
@ -5226,10 +5227,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
target.getCards('h'), target.getCards('h'),
[Object.keys(map),'tdnodes'], [Object.keys(map),'tdnodes'],
],2,true).set('filterButton',button=>{ ],2,true).set('filterButton',button=>{
var map=_status.event.map;
if(!ui.selected.buttons.length) return true; if(!ui.selected.buttons.length) return true;
if(typeof button.link==typeof ui.selected.buttons[0].link) return false; if(typeof button.link==typeof ui.selected.buttons[0].link) return false;
if(typeof button.link=='string') return get.name(ui.selected.buttons[0].link,false)!=button.link; if(typeof button.link=='string') return get.name(ui.selected.buttons[0].link,false)!=map[button.link];
return ui.selected.buttons[0].link!=get.name(button.link,false); return map[ui.selected.buttons[0].link]!=get.name(button.link,false);
}).set('ai',button=>{ }).set('ai',button=>{
var map=_status.event.map; var map=_status.event.map;
if(!ui.selected.buttons.length){ if(!ui.selected.buttons.length){
@ -5249,7 +5251,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(result.bool){ if(result.bool){
var guessWinner=[]; var guessWinner=[];
if(typeof result.links[0]=='string') result.links.reverse(); if(typeof result.links[0]=='string') result.links.reverse();
var OriginCard=result.links[0],ChangeName=result.links[1],cards=target.getCards('h').slice(); var OriginCard=result.links[0],ChangeName=map[result.links[1]],cards=target.getCards('h').slice();
var card=game.createCard(ChangeName,get.suit(OriginCard,false),get.number(OriginCard,false)); var card=game.createCard(ChangeName,get.suit(OriginCard,false),get.number(OriginCard,false));
cards[cards.indexOf(OriginCard)]=card; cards[cards.indexOf(OriginCard)]=card;
if(_status.connectMode){ if(_status.connectMode){