diff --git a/character/yijiang.js b/character/yijiang.js index 2623f6594..44b1e3de1 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -2420,13 +2420,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var player=_status.event.player; var target=_status.event.target; var controls=_status.event.controls.slice(); - controls.sort(function(a,b){ - return [ - get.effect(target,{name:'wuzhong'},player,player)/2, - get.effect(target,{name:'guohe_copy2'},player,player), - get.effect(target,{name:'kaihua'},player,player), - ][['摸牌','弃牌','制衡'].indexOf(b)-['摸牌','弃牌','制衡'].indexOf(a)]; - }); + var map={ + '摸牌':get.effect(target,{name:'wuzhong'},player,player)/2, + '弃牌':get.effect(target,{name:'guohe_copy2'},player,player), + '制衡':get.effect(target,{name:'kaihua'},player,player), + }; + controls.sort((a,b)=>map[b]-map[a]); return controls[0]; }).set('target',target); } @@ -12567,17 +12566,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){ usable:1, audio:'qice_backup', filter:function(event,player){ - const hs=player.getCards('h'); + var hs=player.getCards('h'); if(!hs.length) return false; - if(hs.some(card=>{ - const mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player); - return (mod2===false) - })) return false; - return lib.inpile.some(name=>{ - if(get.type(name)!='trick') return false; - const card=get.autoViewAs({name},hs); - return event.filterCard(card,player,event); - }); + for(var i=0;i