card.shenqi={ card:{ donghuangzhong:{ fullskin:true, type:'equip', subtype:'equip5', skills:['donghuangzhong'], ai:{ equipValue:6 } }, xuanyuanjian:{ fullskin:true, type:'equip', subtype:'equip1', skills:['xuanyuanjian','xuanyuanjian2','xuanyuanjian3'], enable:function(card,player){ return player.skills.contains('xuanyuan')||player.hp>2; }, distance:{attackFrom:-3}, onEquip:function(){ if(!player.skills.contains('xuanyuan')&&player.hp<=2){ player.discard(card); } }, ai:{ equipValue:9 } }, pangufu:{ fullskin:true, type:'equip', subtype:'equip1', skills:['pangufu'], distance:{attackFrom:-3}, ai:{ equipValue:8 } }, lianyaohu:{ fullskin:true, type:'equip', subtype:'equip5', ai:{ equipValue:8 }, skills:['lianhua','shouna'] }, haotianta:{ fullskin:true, type:'equip', subtype:'equip5', skills:['haotianta'], ai:{ equipValue:5 } }, fuxiqin:{ fullskin:true, type:'equip', subtype:'equip5', skills:['kongxin'], ai:{ equipValue:6 } }, shennongding:{ fullskin:true, type:'equip', subtype:'equip5', skills:['shennongding'], ai:{ equipValue:6 } }, kongdongyin:{ fullskin:true, type:'equip', subtype:'equip5', skills:['kongdongyin'], ai:{ basic:{ equipValue:function(card,player){ if(player.hp==2) return 7; if(player.hp==1) return 10; return 5; } } } }, kunlunjingc:{ fullskin:true, type:'equip', subtype:'equip5', skills:['kunlunjingc'], ai:{ equipValue:6 } }, nvwashi:{ fullskin:true, type:'equip', subtype:'equip5', skills:['nvwashi'], ai:{ equipValue:5 } } }, skill:{ kunlunjingc:{ enable:'phaseUse', usable:1, filter:function(event,player){ return player.num('h')>0; }, delay:false, content:function(){ 'step 0' var cards=get.cards(3); event.cards=cards; player.chooseCardButton('选择一张牌',cards,true); 'step 1' event.card=result.links[0]; player.chooseCard('h',true,'用一张手牌替换'+get.translation(event.card)); 'step 2' if(result.bool){ event.cards[event.cards.indexOf(event.card)]=result.cards[0]; player.lose(result.cards,ui.special); var cardx=ui.create.card(); cardx.classList.add('infohidden'); cardx.classList.add('infoflip'); player.$throw(cardx,1000,'nobroadcast'); } else{ event.finish(); } 'step 3' player.gain(event.card); player.$draw(); for(var i=event.cards.length-1;i>=0;i--){ event.cards[i].fix(); ui.cardPile.insertBefore(event.cards[i],ui.cardPile.firstChild); } game.delay(); }, ai:{ order:10, result:{ player:1 } } }, lianhua:{ enable:'phaseUse', filter:function(event,player){ var hu=player.get('e','5'); if(hu&&hu.storage.shouna&&hu.storage.shouna.length>1){ return true; } return false; }, usable:1, content:function(){ "step 0" event.hu=player.get('e','5'); player.chooseCardButton('弃置两张壶中的牌,然后从牌堆中获得一张类别不同的牌',2,event.hu.storage.shouna).ai=function(){ return 1; } "step 1" if(result.bool){ var type=[]; player.$throw(result.links); game.log(player,'弃置了',result.links); for(var i=0;i0; }, content:function(){ 'step 0' player.chooseCardTarget({ filterTarget:true, filterCard:true, ai1:function(card){ return 7-ai.get.useful(card); }, ai2:function(target){ return -ai.get.attitude(player,target); }, prompt:'是否发动【东皇钟】?' }); 'step 1' if(result.bool){ player.logSkill('donghuangzhong',result.targets); player.discard(result.cards); event.target=result.targets[0]; } else{ event.finish(); } 'step 2' var target=event.target; var list=[]; for(var i=0;i0; }, content:function(){ trigger.player.chooseToDiscard(true,'he'); } }, shouhua:{ mode:['identity','infinity'], enable:'phaseUse', filter:function(event,player){ return player==game.me; }, usable:1, filterTarget:function(card,player,target){ return target!=game.zhu&&target!=game.me&&target.hp0){ return 1+trigger.judge(button.link); } if(ai.get.attitude(player,trigger.player)<0){ return 1-trigger.judge(button.link); } return 0; }; "step 1" if(!result.bool){ event.finish(); return; } player.logSkill('haotianta',trigger.player); var card=result.links[0]; event.cards.remove(card); var judgestr=get.translation(trigger.player)+'的'+trigger.judgestr+'判定'; event.videoId=lib.status.videoId++; event.dialog=ui.create.dialog(judgestr); event.dialog.classList.add('center'); event.dialog.videoId=event.videoId; game.addVideo('judge1',player,[get.cardInfo(card),judgestr,event.videoId]); for(var i=0;i0){ trigger.result.bool=true; trigger.player.popup('洗具'); } if(trigger.result.judge<0){ trigger.result.bool=false; trigger.player.popup('杯具'); } game.log(trigger.player,'的判定结果为',card); trigger.direct=true; trigger.position.appendChild(card); game.delay(2); } else{ event.finish(); } "step 2" ui.arena.classList.remove('thrownhighlight'); event.dialog.close(); game.addVideo('judge2',null,event.videoId); ui.clear(); var card=trigger.result.card; trigger.position.appendChild(card); trigger.result.node.delete(); game.delay(); }, ai:{ tag:{ rejudge:10 } } }, shennongding:{ enable:'phaseUse', usable:1, filterCard:true, selectCard:2, check:function(card){ if(get.tag(card,'recover')>=1) return 0; return 7-ai.get.value(card); }, filter:function(event,player){ return player.hp0; }, content:function(){ trigger.untrigger(); trigger.finish(); player.hp=1; player.draw(); player.discard(player.get('e',{subtype:'equip5'})); game.delay(); } }, nvwashi:{ trigger:{global:'dying'}, priority:6, filter:function(event,player){ return event.player.hp<=0&&player.hp>1; }, check:function(event,player){ return ai.get.attitude(player,event.player)>=3; }, content:function(){ "step 0" trigger.player.recover(); "step 1" player.loseHp(); }, ai:{ threaten:1.2, expose:0.2 } }, kongxin:{ enable:'phaseUse', usable:1, filterTarget:function(card,player,target){ return target!=player&&target.num('h'); }, filter:function(event,player){ return player.num('h')?true:false; }, content:function(){ "step 0" player.chooseToCompare(target); "step 1" if(result.bool){ event.bool=true; player.chooseTarget('选择一个目标视为'+get.translation(target)+'对其使用一张杀',function(card,player,target2){ return player!=target2&&target.canUse('sha',target2); }).ai=function(target){ return ai.get.effect(target,{name:'sha'},target,player); } } else{ target.discardPlayerCard(player); } "step 2" if(event.bool&&result.bool){ target.useCard({name:'sha'},result.targets); } }, ai:{ order:7, result:{ target:function(player,target){ if(player.num('h')<=1) return 0; if(ai.get.attitude(player,target)>=0) return 0; for(var i=0;i0){ return -1; } } return 0; } } } }, kongxin2:{ trigger:{player:'dying'}, priority:10, forced:true, popup:false, filter:function(event,player){ return player==game.me; }, content:function(){ player.removeSkill('kongxin2'); game.swapPlayer(player); player.storage.kongxin.lockOut=false; player.storage.kongxin.out(); if(player==game.me) game.swapPlayer(player.storage.kongxin); if(lib.config.mode=='identity') player.storage.kongxin.setIdentity(); delete player.storage.kongxin; }, }, lianyao_hujia:{ mode:['identity','guozhan'], enable:'phaseUse', usable:1, filter:function(event,player){ if(player!=game.me) return false; var card=player.get('e','5'); if(card.storage.shouhua&&card.storage.shouhua.length) return true; return false; }, content:function(){ "step 0" var list=[]; var card=player.get('e','5'); for(var i=0;i