diff --git a/card/standard.js b/card/standard.js index d67d1e8f1..f525d9437 100644 --- a/card/standard.js +++ b/card/standard.js @@ -203,6 +203,7 @@ card.standard={ var tri=_status.event.parent._trigger; if(lib.config.mode=='identity'&&player.identity=='fan'&&target.identity=='fan'){ if(tri&&tri.name=='dying'&&tri.source&&tri.source.identity=='fan'&&tri.source!=target){ + var num=0; for(var i=0;i1; + }, + content:function(){ + 'step 0' + var str=''; + if(trigger.card) str=get.translation(trigger.card.viewAs||trigger.card.name); + else if(trigger.skill) str=get.translation(trigger.skill); + else str=get.translation(trigger.parent.name); + + var cards=[ui.cardPile.childNodes[0],ui.cardPile.childNodes[1]]; + var att=ai.get.attitude(player,trigger.player); + var delta=trigger.judge(ui.cardPile.childNodes[1])-trigger.judge(ui.cardPile.childNodes[0]); + player.chooseControl('调换顺序','cancel', + ui.create.dialog('先知:'+get.translation(trigger.player)+'的'+str+'判定',cards,'hidden')).ai=function(){ + if(att*delta>0) return '调换顺序'; + else return 'cancel'; + }; + 'step 1' + if(result.control=='调换顺序'){ + var card=ui.cardPile.firstChild; + ui.cardPile.removeChild(card); + ui.cardPile.insertBefore(card,ui.cardPile.firstChild.nextSibling); + game.log(get.translation(player)+'调换了牌堆顶两张牌的顺序'); + } + }, + ai:{ + expose:0.1, + rejudge:0.5 + } + }, + jingxiang:{ + trigger:{player:'chooseToRespondBegin'}, + direct:true, + filter:function(event,player){ + if(event.responded) return false; + for(var i=0;i