小优化

This commit is contained in:
mengxinzxz 2024-01-21 00:44:32 +08:00
parent 2e228eff8e
commit 95ef995b2f
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
filter:function(event,player){
return game.hasPlayer(target=>{
if(player.countMark('sbxingshang')>1) return true;
return target.isLinked()||target.isTurnedOver();
return player.countMark('sbxingshang')&&(target.isLinked()||target.isTurnedOver());
});
},
usable:1,
@ -267,6 +267,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return dialog;
},
filter:function(button,player){
if(button.link>2&&player.countMark('sbxingshang')<3) return false;
if(button.link==4) return game.hasPlayer(target=>target!=player&&!target.hasSkill('sbfangzhu_ban'));
return true;
},