十常侍修复

This commit is contained in:
mengxinzxz 2023-08-13 22:24:03 +08:00 committed by GitHub
parent 100dc13053
commit e597fcbdc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -504,8 +504,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var names=map[first];
return !names.contains(changshi);
});
if(list.length==0) return others.randomGets(1);
return list;
return list.length?list:others;
}());
next.set('ai',button=>{
if(button.link=='scs_gaowang') return 10;
@ -1492,6 +1491,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
wuxie:function(){
'step 0'
var trigger=event.getParent().getTrigger();
if(!trigger.respondTo){event.finish();return;}
var target=trigger.respondTo[0];
event.target=target;
if(!target||!target.countGainableCards(player,player==target?'e':'he')) event._result={bool:false};