From 18bc12a031d656ac438800273c3a06d905eee44d Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 1 May 2015 16:28:17 +0800 Subject: [PATCH] =?UTF-8?q?Bug=E3=80=81AI=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/game/game.js b/game/game.js index 847b5c5fc..c5ef57309 100644 --- a/game/game.js +++ b/game/game.js @@ -1051,7 +1051,8 @@ window.play={}; for(var i=0;i=8&&get.type(card)!='equip')?-10:0; - if(player==event.player){ - if(event.small){ - return -get.number(card)-ai.get.value(card)/2+addi; - } - return get.number(card)-ai.get.value(card)/2+addi; + if(event.small&&ai.get.attitude(player,to)>0){ + return -get.number(card)-ai.get.value(card)+addi; } - if(ai.get.attitude(player,_status.event.parent.player)>0){ - if(event.small){ - return get.number(card)-ai.get.value(card)/2+addi; - } - return -get.number(card)-ai.get.value(card)/2+addi; - } - return get.number(card)-ai.get.value(card)/2+addi; + return get.number(card)-ai.get.value(card)+addi; } next.content=lib.element.playerproto.chooseToCompare; return next; @@ -4377,8 +4373,8 @@ window.play={}; return; } if(!event.revealed&&!get.info(event.skill).forced){ - if(game.versusSwapControl&&get.info(event.skill).direct&&player.isUnderControl()){ - game.versusSwapControl(player); + if(get.info(event.skill).direct&&player.isUnderControl()){ + game.modeSwapPlayer(player); event._result={bool:true}; } else if(get.info(event.skill).frequent&&!lib.config.autoskilllist.contains(event.skill)){ @@ -7725,11 +7721,12 @@ window.play={}; return; } var uiintro=this._poppedfunc(); - if(!uiintro) return; if(ui.currentpopped&&ui.currentpopped._uiintro){ ui.currentpopped._uiintro.delete(); delete ui.currentpopped._uiintro; + _status.currentpopped=null; } + if(!uiintro) return; ui.currentpopped=this; uiintro.classList.add('popped'); uiintro.classList.add('static');