From bdfb33a3f6b761910c1508fde69b4ba69255cd77 Mon Sep 17 00:00:00 2001 From: libccy Date: Thu, 10 Sep 2015 21:56:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=81=E7=B4=A2=E7=BB=93=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 2 ++ card/extra.js | 7 +++++++ card/swd.js | 2 +- character/extra.js | 12 +++++++++++- character/hearth.js | 13 +++++-------- character/swd.js | 4 ++-- character/xianjian.js | 4 ++-- game/game.js | 13 +++++++++++-- 8 files changed, 41 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 033d9c638..6b53dd1f9 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,2 +1,4 @@ 1.2.11 火攻bug +铁索结算问题 +酒杀AI diff --git a/card/extra.js b/card/extra.js index b29998e5c..c4ac6a8d5 100755 --- a/card/extra.js +++ b/card/extra.js @@ -35,6 +35,13 @@ card.extra={ if(target&&target==_status.dying) return 2; var shas=target.get('h','sha'); var ok=false; + if(player.num('h','sha')>1){ + if(player.num('e','zhuge')) return 0; + if(player.skills.contains('paoxiao')) return 0; + if(player.skills.contains('tanlnin3')) return 0; + if(player.skills.contains('zhaxiang2')) return 0; + if(player.skills.contains('fengnu')) return 0; + } if(shas.length){ for(var i=0;i0; + return event.card&&event.card.name=='sha'&&player.storage.liaoyuan>0&&event.parent.name!='_lianhuan'&&event.parent.name!='_lianhuan2'; }, content:function(){ trigger.num+=player.storage.liaoyuan; diff --git a/character/xianjian.js b/character/xianjian.js index be33cf07a..f7fa43f4b 100755 --- a/character/xianjian.js +++ b/character/xianjian.js @@ -1319,8 +1319,8 @@ character.xianjian={ }, tianshe2:{ trigger:{source:'damageAfter'}, - filter:function(event){ - if(event.nature) return true; + filter:function(event,player){ + if(event.nature&&player.hp