From cee0d3bb98d73a82312a1dd4730d6f06f0e569dd Mon Sep 17 00:00:00 2001 From: libccy Date: Thu, 10 Sep 2015 17:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=81=AB=E6=94=BBbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 8 ++---- card/extra.js | 6 +++-- character/hearth.js | 59 +++++++++++++++++++++++++++++-------------- character/refresh.js | 2 +- character/swd.js | 34 +++++++++++++++++++++++++ character/xianjian.js | 16 +++++++----- character/xswd.js | 2 +- 7 files changed, 92 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 8f5aa5456..033d9c638 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,6 +1,2 @@ -1.2.10 -国战部分技能bug修正 -部分单挑AI修正 -拼点AI改进 -补全珠联璧合 -新炉石武将 +1.2.11 +火攻bug diff --git a/card/extra.js b/card/extra.js index 707e453af..b29998e5c 100755 --- a/card/extra.js +++ b/card/extra.js @@ -111,7 +111,8 @@ card.extra={ player:function(player){ var nh=player.num('h'); if(nh<=player.hp&&_status.event.name=='chooseToUse'){ - if(_status.event.filterCard({name:'huogong'})){ + if(_status.event.filterCard&& + _status.event.filterCard({name:'huogong'})){ return -10; } if(_status.event.skill){ @@ -125,7 +126,8 @@ card.extra={ target:function(player,target){ if(target.skills.contains('huogong2')||target.num('h')==0) return 0; if(target==player){ - if(_status.event.filterCard({name:'huogong'})){ + if(_status.event.filterCard&& + _status.event.filterCard({name:'huogong'})){ return -1.5; } if(_status.event.skill){ diff --git a/character/hearth.js b/character/hearth.js index 1eead2de6..6918283ce 100755 --- a/character/hearth.js +++ b/character/hearth.js @@ -8,7 +8,7 @@ character.hearth={ hs_malfurion:['male','wu',4,['jihuo'],['fullskin']], hs_guldan:['male','qun',3,['fenliu','hongxi'],['fullskin']], hs_anduin:['male','qun',3,['shengguang','shijie','anying'],['fullskin']], - hs_sthrall:['male','qun',4,['tuteng','tzhenji'],['fullskin']], + hs_sthrall:['male','wu',4,['tuteng','tzhenji'],['fullskin']], hs_waleera:['female','qun',3,['jianren','mengun','wlianji'],['fullskin']], hs_medivh:['male','wei',3,['jingxiang','moying','mdzhoufu'],['fullskin']], @@ -19,7 +19,7 @@ character.hearth={ hs_wvelen:['male','qun',3,['shengyan','xianzhi'],['fullskin']], hs_antonidas:['male','wei',3,['yanshu','bingshuang'],['fullskin']], hs_alakir:['male','wei',3,['fengnu','shengdun'],['fullskin']], - hs_zhouzhuo:['male','qun',3,['jubao','qingnang'],['fullskin']], + hs_zhouzhuo:['male','qun',3,['jubao','qice'],['fullskin']], hs_yngvar:['male','wei',3,['huanwu'],['fullskin']], hs_bchillmaw:['male','wei',6,['hanshuang','bingshi'],['fullskin']], hs_malorne:['male','wu',3,['shenen','chongsheng'],['fullskin']], @@ -29,7 +29,13 @@ character.hearth={ hs_mijiaojisi:['female','qun',3,['kuixin'],['fullskin']], hs_huzhixiannv:['female','wu',3,['jingmeng','qingliu'],['fullskin']], hs_tgolem:['male','qun',4,['guozai'],['fullskin']], - hs_totemic:['male','qun',3,['s_tuteng'],['fullskin']], + hs_totemic:['male','wu',3,['s_tuteng'],['fullskin']], + }, + perfectPair:{ + hs_sthrall:['hs_totemic','hs_alakir','hs_neptulon','hs_yngvar','hs_tgolem'], + hs_anduin:['hs_wvelen','hs_mijiaojisi'], + hs_jaina:['hs_antonidas'], + hs_malfurion:['hs_malorne'], }, skill:{ shenen:{ @@ -104,27 +110,42 @@ character.hearth={ } }, guozai:{ - trigger:{player:'phaseDrawBegin'}, - check:function(event,player){ - return player.num('h')=2){ for(var i=0;iplayer.hp){ @@ -501,9 +502,9 @@ character.xianjian={ }, content:function(){ "step 0" - var suit=get.suit(cards[0]); + var color=get.color(cards[0]); target.judge(function(card){ - return get.suit(card)==suit?1:0; + return get.color(card)==color?1:0; }); "step 1" if(result.bool){ @@ -517,12 +518,13 @@ character.xianjian={ return ai.get.recoverEffect(target); } }, - threaten:1.2 + threaten:1.5 } }, jubao:{ trigger:{global:'discardAfter'}, filter:function(event,player){ + if(player.skills.contains('jubao2')) return false; if(event.player==player) return false; if(_status.currentPhase==player) return false; for(var i=0;i