diff --git a/card/mingzhong.js b/card/mingzhong.js index 0eb8d8c73..ef0f6bb18 100644 --- a/card/mingzhong.js +++ b/card/mingzhong.js @@ -46,7 +46,7 @@ card.mingzhong={ if(!event.directresult){ event.directresult=result.cards; } - event.target1.$give(2,event.target2); + event.target1.$give(event.directresult.length,event.target2); event.target2.gain(event.directresult); }, ai:{ diff --git a/character/hearth.js b/character/hearth.js index fe6f7a93a..c66ba58eb 100755 --- a/character/hearth.js +++ b/character/hearth.js @@ -56,6 +56,8 @@ character.hearth={ hs_nate:['male','wu',4,['chuidiao']], hs_jiaziruila:['male','wu',4,['hannu']], hs_shifazhe:['male','wei',3,['jizhi','shifa']], + hs_lafamu:['male','shu',4,['xieneng']], + hs_yelise:['female','wei',3,['xunbao','zhuizong']], }, perfectPair:{ hs_sthrall:['hs_totemic','hs_alakir','hs_neptulon','hs_yngvar','hs_tgolem'], @@ -64,6 +66,154 @@ character.hearth={ hs_malfurion:['hs_malorne'], }, skill:{ + zhuizong:{ + enable:'phaseUse', + usable:1, + filterCard:true, + position:'he', + selectCard:[1,Infinity], + check:function(card){ + if(ui.selected.cards.length) return 0; + return 6-ai.get.value(card) + }, + content:function(){ + 'step 0' + event.cards=get.cards(4*cards.length); + player.chooseCardButton('获得其中的一张牌',true,event.cards,true); + 'step 1' + player.gain(result.links,'draw'); + event.cards.remove(result.links[0]); + for(var i=0;i1) return 1; + if(player.hp==1) return 1; + return 0; + } + }, + useful:10, + value:10, + } + }, hsshenqi_nengliangzhiguang:{ type:'hsshenqi', image:'card/hsshenqi_nengliangzhiguang', color:'white', opacity:1, textShadow:'black 0 0 2px', + vanish:true, enable:true, + derivation:'hs_lafamu', filterTarget:true, content:function(){ - target.damage(2); + target.gainMaxHp(); + target.recover(); + target.draw(4); }, ai:{ order:5, result:{ - target:-2 - }, - tag:{ - damage:2 + target:function(player,target){ + if(target.hp<=1) return 2; + if(target.num('h')0; + }, + selectTarget:-1, content:function(){ - target.damage(2); + if(target.num('hej')) player.gainPlayerCard(target,'hej',true,Math.ceil(Math.random()*2)); }, ai:{ - order:5, + order:9.5, result:{ - target:-2 + player:1 }, tag:{ - damage:2 + multitarget:1, + multineg:1, }, useful:5, value:10, @@ -2814,7 +3045,9 @@ character.hearth={ color:'white', opacity:1, textShadow:'black 0 0 2px', + vanish:true, enable:true, + derivation:'hs_ysera', filterTarget:true, content:function(){ target.damage(2); @@ -2837,7 +3070,9 @@ character.hearth={ color:'white', opacity:1, textShadow:'black 0 0 2px', + vanish:true, enable:true, + derivation:'hs_ysera', filterTarget:function(card,player,target){ return player!=target; }, @@ -2864,7 +3099,9 @@ character.hearth={ color:'white', opacity:1, textShadow:'black 0 0 2px', + vanish:true, enable:true, + derivation:'hs_ysera', filterTarget:true, content:function(){ target.draw(); @@ -2888,7 +3125,9 @@ character.hearth={ color:'white', opacity:1, textShadow:'black 0 0 2px', + vanish:true, enable:true, + derivation:'hs_ysera', filterTarget:function(card,player,target){ return !target.num('j','lebu')||target.num('e')>0; }, @@ -2925,7 +3164,9 @@ character.hearth={ color:'white', opacity:1, textShadow:'black 0 0 2px', + vanish:true, enable:true, + derivation:'hs_ysera', filterTarget:function(card,player,target){ return target.hp0){ + if(typeof num=='number'&&num>0){ num='+'+num; } node.innerHTML=num; @@ -20202,6 +20203,7 @@ lib.onwash[i](); } for(i=0;i