diff --git a/character/clan.js b/character/clan.js index 31622434f..4825db0e5 100644 --- a/character/clan.js +++ b/character/clan.js @@ -1951,7 +1951,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){ else list.push('选项'+get.cnNumber(ind+1,true)); return link; }); - if(!list.length){event.finish(); return;} + if(!list.length){ + game.log(target, "没有能执行的选项"); + event.finish(); + return; + } target.chooseControl(list).set('choiceList',choiceList).set('ai',()=>{ var controls=_status.event.controls.slice(),player=_status.event.player,user=_status.event.getParent().player; if(controls.length==1) return controls[0]; diff --git a/character/mobile.js b/character/mobile.js index f669e8399..f94c50562 100644 --- a/character/mobile.js +++ b/character/mobile.js @@ -3476,7 +3476,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ direct:true, group:['yijin_upstart','yijin_die'], filter:function(event,player){ - if(!game.hasPlayer(current=>current!=player)) return false; + if(!game.hasPlayer(current=>current!=player && !lib.skill.yijin.getKane(current).length)) return false; return lib.skill.yijin.getKane(player).length; }, getKane:function(player){