From 4778715461f35e3d2ccc6665436a2cadd1e1ef56 Mon Sep 17 00:00:00 2001 From: libccy Date: Wed, 30 Nov 2016 23:02:10 +0800 Subject: [PATCH] y --- card/swd.js | 8 +-- character/hearth.js | 17 ++++- character/sp.js | 16 +++-- character/standard.js | 4 +- character/yijiang.js | 163 ++++++++++++++++++++++++++++++++++++++++-- 5 files changed, 192 insertions(+), 16 deletions(-) diff --git a/card/swd.js b/card/swd.js index df3846711..dd3b979b0 100644 --- a/card/swd.js +++ b/card/swd.js @@ -1906,9 +1906,9 @@ card.swd={ intro:{ content:function(storage,player){ if(storage==1){ - '在'+get.translation(player.storage.gouhunluo2)+'的下个回合开始时失去一点体力并弃置所有装备牌' + '在'+get.translation(player.storage.gouhunluo2)+'的下个回合开始时失去一点体力并弃置所有手牌' } - return '在'+storage+'轮后'+get.translation(player.storage.gouhunluo2)+'的回合开始时失去一点体力并弃置所有装备牌' + return '在'+storage+'轮后'+get.translation(player.storage.gouhunluo2)+'的回合开始时失去一点体力并弃置所有手牌' } }, nopop:true, @@ -1924,7 +1924,7 @@ card.swd={ if(player.storage.gouhunluo<=0){ player.logSkill('gouhunluo'); player.loseHp(); - var es=player.get('e'); + var es=player.get('h'); if(es.length){ player.discard(es); } @@ -4268,7 +4268,7 @@ card.swd={ xuejibingbao:'雪肌冰鲍', xuejibingbao_info:'出牌阶段对一名角色使用,该角色摸牌阶段摸牌数+1,持续2个回合', gouhunluo:'勾魂锣', - gouhunluo_info:'出牌阶段对一名角色使用,在3轮后你的回合开始时令该角色失去1点体力并弃置所有装备牌,若你死亡则失效', + gouhunluo_info:'出牌阶段对一名角色使用,在3轮后你的回合开始时令该角色失去1点体力并弃置所有手牌', jiguan:'机关', jiqi:'祭器', qinglongzhigui:'青龙之圭', diff --git a/character/hearth.js b/character/hearth.js index 0c265c5b4..cc64dcc58 100644 --- a/character/hearth.js +++ b/character/hearth.js @@ -2703,6 +2703,21 @@ character.hearth={ } }, yanshu:{ + trigger:{player:'discardAfter'}, + frequent:true, + usable:1, + filter:function(event,player){ + if(!event.cards) return false; + for(var i=0;i=target.hp; }).set('ai',function(target){ var player=_status.event.player; - if(target==player) return 0.5; + if(target==player){ + if(player.num('h')>=player.maxHp) return 0; + return 0.5; + } var att=ai.get.attitude(player,target); if(att<2) return 0; if(target.hp==1&&att>2){ @@ -2343,7 +2349,8 @@ character.sp={ player.logSkill('juedi',result.targets); if(result.targets[0]==player){ player.$throw(player.storage.yinbing,1000); - player.draw(player.storage.yinbing.length); + var num=player.maxHp-player.num('h'); + if(num>0) player.draw(num); while(player.storage.yinbing.length){ ui.discardPile.appendChild(player.storage.yinbing.shift()); } @@ -2355,6 +2362,7 @@ character.sp={ game.log(target,'获得了',player.storage.yinbing); target.recover(); target.gain(player.storage.yinbing.slice(0),'gain2'); + target.draw(player.storage.yinbing.length); player.storage.yinbing.length=0; } player.syncStorage('yinbing'); @@ -6607,7 +6615,7 @@ character.sp={ yinbing:'引兵', yinbing_info:'结束阶段开始时,你可以将至少一张非基本牌置于武将牌上。每当你受到【杀】或【决斗】的伤害后,你将一张“引兵牌”置入弃牌堆。', juedi:'绝地', - juedi_info:'准备阶段开始时,若你有“引兵牌”,你可以选择一项:1.将这些牌置入弃牌堆并摸等量的牌;2.令一名体力值不大于你的其他角色回复1点体力并获得这些牌', + juedi_info:'锁定技,准备阶段,你选择一项:1.移去“引兵”牌,将手牌补至体力上限数;2.将“引兵”牌交给一名体力值不大于你的其他角色,其回复1点体力,摸等量的牌', kuangfu:'狂斧', kuangfu_info:'每当你使用杀造成伤害,可以将对方的一张装备牌移到你的装备区', xintan:'心惔', diff --git a/character/standard.js b/character/standard.js index 85a8372ad..171792d15 100644 --- a/character/standard.js +++ b/character/standard.js @@ -573,7 +573,7 @@ character.standard={ if(event.responded) return false; if(player.storage.jijianging) return false; if(!player.hasZhuSkill('jijiang')) return false; - if(event.filterCard({name:'sha'})==false) return false; + if(event.filterCard({name:'sha'},player,event)==false) return false; for(var i=0;i=-0.8) goon=false; + else if(trigger.player.num('h')<=3) goon=false; + else if(player.num('h','shan')==0) goon=false; + var es=player.get('e'); + var color=[]; + for(var i=0;i