diff --git a/character/gujian.js b/character/gujian.js index 0323df3b7..1a9486998 100644 --- a/character/gujian.js +++ b/character/gujian.js @@ -5,7 +5,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ character:{ gjqt_bailitusu:['male','shu',4,['xuelu','fanshi','shahun']], gjqt_fengqingxue:['female','wu',3,['qinglan','yuehua','swd_wuxie']], - gjqt_xiangling:['female','wu',3,['qianhuan','meihu','xidie']], + gjqt_xiangling:['female','wu',3,['xlqianhuan','meihu','xidie']], gjqt_fanglansheng:['male','wu',3,['fanyin','mingkong','fumo']], gjqt_yinqianshang:['male','qun',4,['zuiji','zuizhan']], gjqt_hongyu:['female','shu',4,['jianwu','meiying']], @@ -673,7 +673,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } } }, - qianhuan:{ + xlqianhuan:{ trigger:{player:'phaseAfter'}, check:function(event,player){ return player.hp==1||player.isTurnedOver(); @@ -1568,8 +1568,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ meiying_info:'一名其他角色的回合结束时,若其未于此回合内使用过指定另一名角色为目标的牌,你可以弃置一张红色牌视为对其使用一张杀', zuizhan:'乱斩', zuizhan_info:'每当你使用一张杀,可以摸一张牌,然后此杀随机增加一个额外目标', - qianhuan:'千幻', - qianhuan_info:'回合结束后,若你已受伤,你可以回复一点体力并将武将牌翻面。若你的武将牌背面朝上,你不能使用卡牌,也不能成为卡牌的目标', + xlqianhuan:'千幻', + xlqianhuan_info:'回合结束后,若你已受伤,你可以回复一点体力并将武将牌翻面。若你的武将牌背面朝上,你不能使用卡牌,也不能成为卡牌的目标', fumo:'伏魔', fumo_info:'每当你受到一次伤害,可以弃置两张颜色相同的手牌并对伤害来源造成一点雷电伤害', fanyin:'梵音', diff --git a/character/gwent.js b/character/gwent.js index 4ee855dc9..bb2109129 100644 --- a/character/gwent.js +++ b/character/gwent.js @@ -3450,7 +3450,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_yioufeisisp', + image:'character:gw_yioufeisisp', enable:function(){ return game.countPlayer()>2; }, @@ -3489,7 +3489,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_luoqi', + image:'character:gw_luoqi', enable:true, filterTarget:function(card,player,target){ return player.canUse('sha',target,false); @@ -3532,7 +3532,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_jieluote', + image:'character:gw_jieluote', enable:true, filterTarget:true, content:function(){ @@ -3586,7 +3586,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_yenaifa', + image:'character:gw_yenaifa', enable:true, notarget:true, content:function(){ @@ -3619,7 +3619,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_telisi', + image:'character:gw_telisi', enable:true, notarget:true, content:function(){ @@ -3654,7 +3654,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_hengsaite', + image:'character:gw_hengsaite', enable:true, notarget:true, content:function(){ @@ -3694,7 +3694,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_fuertaisite', + image:'character:gw_fuertaisite', enable:true, filterTarget:true, selectTarget:[1,2], @@ -3729,7 +3729,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_laduoweide', + image:'character:gw_laduoweide', enable:true, filterTarget:true, content:function(){ @@ -3761,7 +3761,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_enxier', + image:'character:gw_enxier', enable:true, filterTarget:function(card,player,target){ return Math.abs(target.countCards('h')-player.countCards('h'))<=1; @@ -3793,7 +3793,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_fulisi', + image:'character:gw_fulisi', enable:true, filterTarget:function(card,player,target){ return target!=player&&target.countCards('h'); @@ -3846,7 +3846,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_kaerweite', + image:'character:gw_kaerweite', enable:true, filterTarget:function(card,player,target){ return target!=player&&target.countCards('h'); @@ -3881,7 +3881,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_bulanwang', + image:'character:gw_bulanwang', enable:true, notarget:true, content:function(){ @@ -3921,7 +3921,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_kuite', + image:'character:gw_kuite', enable:true, filterTarget:function(card,player,target){ return target.countCards('h')>=player.countCards('h')&&player.canUse('juedou',target); @@ -3955,7 +3955,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_haluo', + image:'character:gw_haluo', enable:true, filterTarget:function(card,player,target){ return target.isMinHp(); @@ -3986,7 +3986,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_dagong', + image:'character:gw_dagong', enable:true, content:function(){ target.addSkill('gw_ciguhanshuang'); @@ -4024,7 +4024,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_gaier', + image:'character:gw_gaier', enable:true, filterTarget:true, content:function(){ @@ -4070,7 +4070,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_airuiting', + image:'character:gw_airuiting', enable:true, filterTarget:function(card,player,target){ return target!=player; @@ -4114,7 +4114,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_aisinie', + image:'character:gw_aisinie', enable:true, notarget:true, content:function(){ @@ -4152,7 +4152,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_falanxisika', + image:'character:gw_falanxisika', enable:true, notarget:true, content:function(){ @@ -4195,7 +4195,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ fullborder:'gold', vanish:true, derivation:'gw_diandian', - image:'character/gw_huoge', + image:'character:gw_huoge', enable:true, notarget:true, content:function(){ diff --git a/character/hearth.js b/character/hearth.js index 807a8d4a5..612ebc1cf 100644 --- a/character/hearth.js +++ b/character/hearth.js @@ -762,7 +762,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ lib.card[cardname]=lib.card[cardname]||{ enable:true, type:'character', - image:'character/'+name, + image:'character:'+name, fullimage:true, vanish:true, skills:skills, diff --git a/character/shenhua.js b/character/shenhua.js index 47ca6381b..3e91f1c55 100644 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -887,7 +887,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ else{ var next=player.chooseToDiscard(get.prompt('qiaobian'),'弃置一张手牌并跳过判定阶段'); next.set('ai',get.unuseful2); - next.set('logSkill','qiaobian'); + next.set('logSkill','qiaobian1'); } "step 1" if(result.bool){ @@ -921,7 +921,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.chooseToDiscard(get.prompt('qiaobian'),'弃置一张手牌并跳过摸牌阶段,然后可以获得至多两名角色各一张手牌',lib.filter.cardDiscardable).set('ai',function(card){ if(!_status.event.check) return 0; return 7-get.value(card); - }).set('check',check).set('logSkill','qiaobian'); + }).set('check',check).set('logSkill','qiaobian2'); "step 1" if(result.bool){ trigger.cancel(); @@ -984,7 +984,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.chooseToDiscard(get.prompt('qiaobian'),'弃置一张手牌并跳过出牌阶段,然后可以移动场上的一张牌',lib.filter.cardDiscardable).set('ai',function(card){ if(!_status.event.check) return 0; return 7-get.value(card); - }).set('check',check).set('logSkill','qiaobian'); + }).set('check',check).set('logSkill','qiaobian3'); "step 1" if(result.bool){ trigger.cancel(); @@ -1008,7 +1008,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ content:function(){ "step 0" var discard=player.countCards('h')>player.hp; - var next=player.chooseToDiscard(get.prompt('qiaobian'),'弃置一张手牌并跳过弃牌阶段'); + var next=player.chooseToDiscard(get.prompt('qiaobian4'),'弃置一张手牌并跳过弃牌阶段'); next.logSkill='qiaobian'; next.ai=function(card){ if(discard){ @@ -1342,11 +1342,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, guzheng:{ audio:2, - unique:true, - gainable:true, + // unique:true, + // gainable:true, trigger:{global:'discardAfter'}, filter:function(event,player){ - if(event.player!=player&&event.player.classList.contains('dead')==false&& + if(event.player!=player&&event.player.isIn()&& event.cards&&event.cards.length&&event.getParent(2).name=='phaseDiscard'){ for(var i=0;i=3){ + goon=false; + } + } + else if(trigger.card.name=='guohe'){ + if(trigger.target.countCards('he')>=3||!trigger.target.countCards('h')){ + goon=false; + } + } + else if(trigger.card.name=='shuiyanqijunx'){ + if(trigger.target.countCards('e')<=1||trigger.target.hp>=3){ + goon=false; + } + } + else if(get.tag(trigger.card,'damage')&&trigger.target.hp>=3){ + goon=false; + } + } + player.chooseButton().set('goon',goon).set('ai',function(button){ + if(_status.event.goon) return 1; + return 0; + }).set('createDialog',[get.prompt('qianhuan'),'
移去一张“千幻”牌令'+ + get.translation(trigger.player)+'对'+get.translation(trigger.target)+'的'+get.translation(trigger.card)+'失效
',player.storage.qianhuan]); + 'step 1' + if(result.bool){ + var card=result.links[0]; + player.storage.qianhuan.remove(card); + if(player.storage.qianhuan.length){ + player.updateMarks('qianhuan'); + } + else{ + player.unmarkSkill('qianhuan'); + } + card.discard(); + player.$throw(card); + player.logSkill('qianhuan',trigger.player); + trigger.cancel(); + } + } + } + } + }, gzjili:{ subSkill:{ count:{ @@ -692,6 +796,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ if(get.type(event.shown[i],'trick')==type){ list.push(event.shown[i]); } + else{ + event.shown[i].discard(); + } } if(list.length){ player.gain(list,'gain2'); @@ -794,7 +901,10 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ check:function(card){ var num=7-get.value(card); if(get.position(card)=='h'){ - num+=3; + if(zhu.storage.yuanjiangfenghuotu>=5){ + return num-3; + } + return num+3; } else{ var player=_status.event.player; @@ -1126,10 +1236,10 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, gzxinsheng:{ trigger:{player:'damageEnd'}, - frequent:true, + // frequent:true, content:function(){ game.log(player,'获得了一张','#g化身'); - lib.skill.gzhuashen.addCharacter(player,_status.characterlist.randomGet()); + lib.skill.gzhuashen.addCharacter(player,_status.characterlist.randomGet(),true); game.delayx(); } }, @@ -1192,7 +1302,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ } return skills; }, - addCharacter:function(player,name){ + addCharacter:function(player,name,show){ var skills=lib.skill.gzhuashen.filterSkill(name); if(skills.length){ player.storage.gzhuashen_map[name]=skills; @@ -1203,6 +1313,26 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ player.storage.gzhuashen.add(name); player.updateMarks('gzhuashen'); _status.characterlist.remove(name); + if(show){ + lib.skill.gzhuashen.drawCharacter(player,[name]); + } + }, + drawCharacter:function(player,list){ + game.broadcastAll(function(player,list){ + if(player.isUnderControl(true)){ + var cards=[]; + for(var i=0;i