diff --git a/character/hearth.js b/character/hearth.js index 171c570e5..ead361b2d 100644 --- a/character/hearth.js +++ b/character/hearth.js @@ -576,7 +576,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(event.triggername=='phaseBegin'){ player.storage.lieqi=target; } - var hs=target.get('h').randomSort(); + var hs=target.getCards('h').randomSort(); if(hs.length){ var list2=[]; for(var i=0;i0; })){ @@ -678,7 +676,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ else if(button.link[3]=='fire') return 2.92; else return 2.9; break; - default:return 2+_status.event.rand*2; + default:return 2+_status.event.getRand()*2; } } return 0; @@ -770,7 +768,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.addSkill('qianfu2'); player.hp=1; player.update(); - player.discard(player.get('he')); + player.discard(player.getCards('he')); player.setAvatar('hs_selajin','hs_selajin2'); }, ai:{ @@ -1147,7 +1145,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ forced:true, content:function(){ 'step 0' - player.discard(player.get('hej')); + player.discard(player.getCards('hej')); 'step 1' player.link(false); 'step 2' diff --git a/character/sp.js b/character/sp.js index d125a4769..ec508c180 100644 --- a/character/sp.js +++ b/character/sp.js @@ -7571,13 +7571,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, content:function(){ "step 0" + player.addSkill('duwu3'); target.damage(); - if(target.hp>1){ - event.finish(); - } "step 1" - player.addSkill('duwu2'); - player.loseHp(); + if(!player.hasSkill('duwu3')){ + player.addSkill('duwu2'); + player.loseHp(); + } + else{ + player.removeSkill('duwu3'); + } }, ai:{ order:2, @@ -7599,6 +7602,19 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.removeSkill('duwu2'); } }, + duwu3:{ + trigger:{global:'dying'}, + priority:15, + forced:true, + popup:false, + silent:true, + filter:function(event,player){ + return event.reason&&event.reason.getParent().name=='duwu'; + }, + content:function(){ + player.removeSkill('duwu3'); + } + }, yicong:{ mod:{ globalFrom:function(from,to,current){ diff --git a/character/swd.js b/character/swd.js index 955f3df38..503b14956 100644 --- a/character/swd.js +++ b/character/swd.js @@ -4878,40 +4878,22 @@ game.import('character',function(lib,game,ui,get,ai,_status){ alter:true, group:['kunlunjing1','kunlunjing2'], video:function(player,data){ - if(data){ - for(var i in data){ - var current=game.playerMap[i]; - current.node.handcards1.innerHTML=''; - current.node.handcards2.innerHTML=''; - current.node.equips.innerHTML=''; - current.node.judges.innerHTML=''; - current.directgain(get.infoCards(data[i].h)); - var es=get.infoCards(data[i].e); - for(var j=0;j0){ + num++; + if(get.attitude(player,target)>0){ + hef/=1.5; + if(get.tag(hs[i],'damage')){ + damaged=true; + } + } + eff+=hef; + } + } + if(!player.needsToDiscard(-num)){ + return eff; + } + return 0; + }; + 'step 1' + if(result.bool){ + event.target=result.targets[0]; + var num=0; + player.chooseCard([1,Infinity],'按顺序选择对'+get.translation(result.targets)+'使用的牌',function(card){ + return lib.filter.targetEnabled2(card,player,event.target); + }).ai=function(card){ + if(ai.get.effect(event.target,card,player,player)>0){ + if(get.attitude(player,event.target)>0&&get.tag(card,'damage')){ + for(var i=0;i0&&num2>0) return 3; } if(player.storage.husha>1){ @@ -2891,6 +3185,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){ pal_mingxiu:'明绣', pal_jushifang:'居十方', + ywuhun:'雾魂', + ywuhun_info:'锁定技,回合开始前,你获得一个额外的回合,并在此回合结束后将场上及牌堆的所有牌恢复至回合前的状态', + feichen:'飞尘', + feichen_info:'', + yingfeng:'影锋', + yingfeng_info:'锁定技,每当你使用一张杀结算完毕后,你随机对一名不是此杀目标的敌方角色使用一张杀', + cuikong:'摧空', + cuikong_info:'你可以放弃出牌阶段,改为指定一名其他角色并选择任意张手牌,依次对该角色使用,若如此做,此阶段内该角色每受到一点伤害,你摸一张牌', zongyu:'纵雨', zongyu_info:'出牌阶段限一次,你可以弃置一张黑色牌,视为使用一张飞镖,随机指定两名敌方角色为目标', fanling:'返灵', diff --git a/game/game.js b/game/game.js index 395f2f65f..3db36871b 100644 --- a/game/game.js +++ b/game/game.js @@ -5664,7 +5664,7 @@ position=[]; for(var i=0;i