From 6473848f068c9290cfb0cce08566558dcde38c61 Mon Sep 17 00:00:00 2001 From: libccy Date: Wed, 29 Apr 2015 13:33:18 +0800 Subject: [PATCH] 1.0.0.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加国战首亮摸牌、珠联璧合 修正鬼才、奇策的问题 --- card/guozhan.js | 5 +++++ character/refresh.js | 2 +- character/sp.js | 1 + character/xianjian.js | 12 +++--------- character/yijiang.js | 6 ++++-- game/config.js | 4 ++++ game/game.js | 16 ++++++++++++---- mode/guozhan.js | 41 ++++++++++++++++++++++++++++++++++++++++- 8 files changed, 70 insertions(+), 17 deletions(-) diff --git a/card/guozhan.js b/card/guozhan.js index d69e7ccba..097888399 100644 --- a/card/guozhan.js +++ b/card/guozhan.js @@ -104,6 +104,11 @@ card.guozhan={ target.chooseToDiscard(2,'he',true).ai=ai.get.disvalue; }, ai:{ + wuxie:function(target,card,player,viewer){ + if(lib.config.mode=='guozhan'){ + return 0; + } + }, basic:{ useful:4, value:4, diff --git a/character/refresh.js b/character/refresh.js index 94ac055d1..cd5dd614c 100644 --- a/character/refresh.js +++ b/character/refresh.js @@ -113,7 +113,7 @@ character.refresh={ } "step 2" if(result.bool){ - player.logSkill('guicai'); + player.logSkill('reguicai'); if(trigger.player.judging.clone) trigger.player.judging.clone.delete(); ui.discardPile.appendChild(trigger.player.judging); trigger.player.judging=result.cards[0]; diff --git a/character/sp.js b/character/sp.js index 755807347..6a9375ef5 100644 --- a/character/sp.js +++ b/character/sp.js @@ -1548,6 +1548,7 @@ character.sp={ } }, ai:{ + threaten:0.8, expose:0.1 } }, diff --git a/character/xianjian.js b/character/xianjian.js index 337dc74d5..c8edd99ec 100644 --- a/character/xianjian.js +++ b/character/xianjian.js @@ -1269,17 +1269,11 @@ character.xianjian={ huimeng:{ trigger:{player:'recoverAfter'}, frequent:true, - // filter:function(event,player){ - // if(event.cards){ - // for(var i=0;i=2||player.hp>=player.maxHp-1) return 'draw_card'; + if(player.hp==2&&player.num('h')==0) return 'draw_card'; + return 'recover_hp'; + },ui.create.dialog('hidden','珠联璧合:选择一项奖励')); + } + "step 1" + if(result.control=='draw_card'){ + player.draw(2); + } + else{ + player.recover(); + } + } + } } }, + perfectPair:function(){ + return false; + }, siege:function(player){ if(game.players.length==2) return false; if(this.identity=='unknown'||this.identity=='ye') return false; @@ -683,6 +721,7 @@ mode.guozhan={ }, config:{ player_number:true, + initshow_draw:true, free_choose:true, change_choice:true, change_card:true,