card.shenqi={ card:{ donghuangzhong:{ type:'equip', subtype:'equip5', skills:['donghuangzhong'], enable:function(card,player){return player==game.me;}, onEquip:function(){ //if(player==game.me) player.loseHp(); }, onLose:function(){ //if(player==game.me) player.loseHp(); } }, xuanyuanjian:{ type:'equip', subtype:'equip1', skills:['xuanyuanjian','xuanyuanjian2'], enable:function(card,player){ return player.skills.contains('xuanyuan')||player.hp>2; }, distance:{attackFrom:-Infinity}, onEquip:function(){ //player.loseHp(); if(!player.skills.contains('xuanyuan')&&player.hp<=2){ player.discard(card); } }, onLose:function(){ if(!player.skills.contains('xuanyuan')) player.loseHp(); }, ai:{ equipValue:20 } }, pangufu:{ fullskin:true, type:'equip', subtype:'equip1', skills:['pangufu'], distance:{attackFrom:-3}, ai:{ equipValue:8 } }, lianyaohu:{ fullskin:true, type:'equip', subtype:'equip5', onLose:function(){ delete player.storage.lianhua; }, ai:{ equipValue:8 }, skills:['lianhua','shouna'] }, haotianta:{ type:'equip', subtype:'equip5', skills:['haotianta'], enable:function(card,player){return player==game.me;}, onEquip:function(){ //player.loseHp(); }, onLose:function(){ //player.loseHp(); }, ai:{ equipValue:0 } }, fuxiqin:{ fullskin:true, type:'equip', subtype:'equip5', skills:['kongxin'], ai:{ equipValue:8 } }, 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 9; return 5; } } } }, // kunlunjing:{ // type:'equip', // subtype:'equip5', // skills:['kunlunjing'], // onEquip:function(){ // //if(player==game.me) player.loseHp(); // }, // onLose:function(){ // //if(player==game.me) player.loseHp(); // }, // ai:{ // equipValue:5 // } // }, nvwashi:{ fullskin:true, type:'equip', subtype:'equip5', skills:['nvwashi'], ai:{ equipValue:7 } } }, skill:{ 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(get.translation(player)+'弃置了'+get.translation(result.links)); 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 trigger.judge(button.link); } if(ai.get.attitude(player,trigger.player)<0){ return -trigger.judge(button.link); } }; "step 1" var card=result.links[0]; event.cards.remove(card); 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(get.translation(trigger.player)+'的判定结果为'+get.translation(card)+ '('+get.translation(get.suit(card))+get.number(card)+')'); trigger.direct=true; trigger.position.appendChild(card); game.delay(2); } else{ event.finish(); } "step 2" var card=trigger.result.card; if(trigger.position!=ui.discardPile){ trigger.position.appendChild(card); trigger.result.node.delete(); } else{ player.gain(card); player.$gain2(card); } 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; }, check:function(event,player){ return ai.get.attitude(player,event.player)>0; }, content:function(){ "step 0" trigger.player.judge(function(card){ return get.suit(card)=='heart'?1:0; }); "step 1" if(result.bool){ trigger.player.recover(); } }, 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(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