card.refresh={ card:{ muniu:{ fullskin:true, type:'equip', subtype:'equip5', skills:['muniu_skill','muniu_skill2','muniu_skill7'], ai:{ basic:{ equipValue:function(card){ if(card.card) return 8+card.card.length; return 8; } } } } }, skill:{ muniu_skill:{ enable:'phaseUse', usable:1, filterCard:true, check:function(card){ return 10-ai.get.useful(card); }, discard:false, lose:true, prepare:function(cards,player){ player.$give(1,player,false); }, content:function(){ "step 0" for(var i=0;i=3&&ai.get.attitude(game.players[i],player)>=3){ players.push(game.players[i]); } } players.sort(lib.sort.seat); var choice=players[0]; player.chooseTarget('是否移动木牛流马?',function(card,player,target){ return !target.isMin()&&player!=target&&!target.get('e','5'); }).ai=function(target){ return target==choice?1:-1; }; "step 1" if(result.bool){ var card=player.get('e','5'); result.targets[0].equip(card); player.addTempSkill('muniu_skill6','equipAfter'); player.$give(card,result.targets[0]); game.delay(); } }, ai:{ save:true, respondSha:true, respondShan:true, order:1, result:{ player:1 } } }, muniu_skill2:{ group:['muniu_skill3','muniu_skill4'] }, muniu_skill3:{ trigger:{player:'chooseToRespondBegin'}, filter:function(event,player){ if(event.responded) return false; var muniu=player.get('e','5'); if(!muniu.cards) return false; for(var i=0;i=ai.get.equipValue(button.link)) return -1; return 1; } if(get.tag(button.link,'multitarget')) return -1; if(button.link.name=='huoshaolianying') return -1; } return 1; }).filterButton=function(button){ return trigger.filterCard(button.link,player,trigger); }; player.addTempSkill('muniu_skill8',['useCardAfter','phaseAfter']); "step 1" if(result.bool){ lib.skill.muniu_skill5.viewAs=result.buttons[0].link; event.parent.parent.backup('muniu_skill5'); event.parent.parent.step=0; if(event.isMine()){ event.parent.parent.openskilldialog='选择'+get.translation(result.buttons[0].link)+'的目标'; } } else{ event.parent.parent.step=0; } }, ai:{ order:4, result:{ player:function(player){ if(player.skills.contains('muniu_skill8')) return 0; if(_status.dying) return ai.get.attitude(player,_status.dying); return 1; } }, useful:-1, value:-1 } }, muniu_skill5:{ filterCard:function(){return false}, selectCard:-1 }, muniu_skill6:{}, muniu_skill8:{}, muniu_skill7:{ filter:function(){return false}, hiddenCard:function(player,name){ var muniu=player.get('e','5'); if(!muniu.cards) return false; for(var i=0;i