diff --git a/card/hearth.js b/card/hearth.js index 0fe4c38d1..d6a322f8c 100644 --- a/card/hearth.js +++ b/card/hearth.js @@ -139,9 +139,8 @@ card.hearth={ 'step 2' game.delay(0.5); 'step 3' - var hs=player.get('h'); - if(hs.length){ - player.discard(hs.randomGet()); + if(target.num('h')){ + target.chooseToDiscard('h',true); } }, ai:{ @@ -150,9 +149,8 @@ card.hearth={ useful:2, result:{ target:function(player,target){ - return Math.max(0,2-target.num('e')); + return Math.max(0,2-target.num('e'))+(target.num('h')?0:0.5); }, - player:-0.5 } } }, @@ -653,7 +651,7 @@ card.hearth={ shandianjian:'闪电箭', shandianjian_info:'目标角色展示一张手牌,然后若你能弃掉一张与所展示牌相同花色的手牌,则对该角色造成1点雷电伤害。', shijieshu:'视界术', - shijieshu_info:'目标随机装备牌堆中的两张装备牌,使用者随机弃置一张手牌', + shijieshu_info:'目标随机装备牌堆中的两张装备牌,然后弃置一张手牌', zhaomingdan:'照明弹', zhaomingdan_info:'弃置一名其他角色判定区内的所有牌,然后摸一张牌', jihuocard:'激活', diff --git a/card/swd.js b/card/swd.js index 6cdbddd00..a368bd693 100755 --- a/card/swd.js +++ b/card/swd.js @@ -1920,11 +1920,6 @@ card.swd={ return 'zeroplayertarget'; } }, - player:function(card,player,target,current){ - if(get.type(card)=='trick'&&get.tag(card,'damage')){ - return 'zeroplayertarget'; - } - } } } }, @@ -3275,7 +3270,7 @@ card.swd={ lingjiandai_info:'出牌阶段对距离1以内的一名角色使用,目标获得3张随机零件', mujiaren:'木甲人', mujiaren_skill:'巧匠', - mujiaren_skill_info:'你在煅造装备时可以额外加入一个零件;你可以非基本牌当作机关鼠使用', + mujiaren_skill_info:'你在煅造装备时可以额外加入一个零件;你可以将非基本牌当作机关鼠使用', mujiaren_info:'出牌阶段对距离1以内的一名角色使用,目标获得技能巧匠(你在煅造装备时可以额外加入一个零件;你可以将非基本牌当作机关鼠使用)', hslingjian:'零件', hslingjian_xuanfengzhiren:'旋风之刃', diff --git a/character/hearth.js b/character/hearth.js index f695cdffb..732eeb40a 100755 --- a/character/hearth.js +++ b/character/hearth.js @@ -3965,7 +3965,7 @@ character.hearth={ player.draw(3); }, ai:{ - order:1, + order:4, result:{ player:function(player){ if(player.num('h')>=player.hp-1) return -1; diff --git a/character/ow.js b/character/ow.js index 815219592..8a9df60f2 100644 --- a/character/ow.js +++ b/character/ow.js @@ -171,7 +171,6 @@ character.ow={ }, liudan:{ trigger:{player:'useCard'}, - popup:false, check:function(event,player){ var list=[]; for(var i=0;i0; + return player.num('h',{type:['trick','delay']})>0; }, filterTarget:function(card,player,target){ var names=[]; @@ -5381,7 +5380,7 @@ character.swd={ return false; } }, - // group:'tianshu_remove', + group:'tianshu_remove', createDialog:function(player,target,onlylist){ var names=[]; var list=[]; @@ -5433,9 +5432,6 @@ character.swd={ }, content:function(){ "step 0" - if(player.storage.tianshu){ - player.unmark(player.storage.tianshu+'_charactermark'); - } event.skillai=function(list){ return list.randomGet(); }; @@ -5445,39 +5441,34 @@ character.swd={ event._result=event.skillai(event.list); game.resume(); }; + _status.imchoosing=true; game.pause(); } else{ event._result=event.skillai(lib.skill.tianshu.createDialog(player,target,true)); } "step 1" + _status.imchoosing=false; if(event.dialog){ event.dialog.close(); } var link=result; player.addSkill(link); player.skills.remove(link); + if(player.additionalSkills.tianshu){ + player.removeSkill(player.additionalSkills.tianshu); + } player.additionalSkills.tianshu=link; player.popup(link); - player.markCharacter(target.name,{ - name:get.translation(link), - content:lib.translate[link+'_info'] - }); - game.addVideo('markCharacter',player,{ - name:get.translation(link), - content:lib.translate[link+'_info'], - id:'tianshu', - target:target.name - }); - player.storage.tianshu=target.name; + player.markSkillCharacter('tianshu',target,get.translation(link),lib.translate[link+'_info']); + player.storage.tianshu=target; player.checkMarks(); - player.addTempSkill('tianshu_ai','phaseAfter'); + game.log(player,'获得了技能','【'+get.translation(link)+'】'); }, ai:{ order:1, result:{ player:function(player){ - if(player.skills.contains('tianshu_ai')) return 0; if(player.num('h')>player.hp) return 1; return 0; } @@ -5485,19 +5476,20 @@ character.swd={ } }, tianshu_remove:{ - trigger:{player:'phaseUseBegin'}, + trigger:{global:'dieAfter'}, forced:true, popup:false, silent:true, + filter:function(event,player){ + return event.player==player.storage.tianshu; + }, content:function(){ - if(player.storage.tianshu){ - player.unmark(player.storage.tianshu+'_charactermark'); - delete player.storage.tianshu; - delete player.additionalSkills.tianshu; - } + player.unmarkSkill('tianshu'); + player.removeSkill(player.additionalSkills.tianshu); + delete player.storage.tianshu; + delete player.additionalSkills.tianshu; } }, - tianshu_ai:{}, tianshu2_old:{ trigger:{player:'phaseBegin'}, direct:true, @@ -6301,7 +6293,7 @@ character.swd={ } } }, - lanzhi:{ + lanzhi_old:{ trigger:{source:'damageBefore'}, prompt:function(event){ return '是否对'+get.translation(event.player)+'发动【兰芷】?'; @@ -6318,6 +6310,68 @@ character.swd={ player.recover(); }, }, + lanzhi:{ + trigger:{player:'useCard'}, + filter:function(event,player){ + if(get.suit(event.card)=='club'){ + for(var i=0;i0){ + num++; + } + else{ + num--; + } + } + return num>0; + }, + content:function(){ + "step 0" + var list=[]; + for(var i=0;i