十常侍修复
This commit is contained in:
parent
100dc13053
commit
e597fcbdc0
|
@ -504,8 +504,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
var names=map[first];
|
var names=map[first];
|
||||||
return !names.contains(changshi);
|
return !names.contains(changshi);
|
||||||
});
|
});
|
||||||
if(list.length==0) return others.randomGets(1);
|
return list.length?list:others;
|
||||||
return list;
|
|
||||||
}());
|
}());
|
||||||
next.set('ai',button=>{
|
next.set('ai',button=>{
|
||||||
if(button.link=='scs_gaowang') return 10;
|
if(button.link=='scs_gaowang') return 10;
|
||||||
|
@ -1492,6 +1491,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
wuxie:function(){
|
wuxie:function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
var trigger=event.getParent().getTrigger();
|
var trigger=event.getParent().getTrigger();
|
||||||
|
if(!trigger.respondTo){event.finish();return;}
|
||||||
var target=trigger.respondTo[0];
|
var target=trigger.respondTo[0];
|
||||||
event.target=target;
|
event.target=target;
|
||||||
if(!target||!target.countGainableCards(player,player==target?'e':'he')) event._result={bool:false};
|
if(!target||!target.countGainableCards(player,player==target?'e':'he')) event._result={bool:false};
|
||||||
|
|
Loading…
Reference in New Issue