'use strict'; card.qimou={ card:{ chenhuodajie:{ fullskin:true, type:'trick', content:function(){ if(target.num('he')){ player.gainPlayerCard('he',target,true); } }, ai:{ order:1, useful:6, value:6, result:{ target:-1 }, tag:{ loseCard:1 } } }, shushangkaihua:{ fullskin:true, type:'trick', enable:true, selectTarget:-1, multitarget:true, multiline:true, filterTarget:function(card,player,target){ if(player==target) return true; var num=target.num('h'); for(var i=0;i0){ num++; } else if(eff<0){ num--; } } } return num; } } } }, yihuajiemu:{ fullskin:true, type:'trick', enable:true, filterTarget:function(card,player,target){ if(target.isMin()) return false; if(ui.selected.targets.length){ return target.get('e',{subtype:'equip5'}).length==0; } else{ return target.get('e',{subtype:'equip5'}).length>0; } }, selectTarget:2, multitarget:true, content:function(){ if(targets[0].get('e','5')){ targets[0].$give(targets[0].get('e','5'),targets[1]); targets[1].equip(targets[0].get('e','5')); game.delay(); } }, ai:{ order:1, result:{ target:function(player,target){ if(target.get('e',{subtype:'equip5'}).length){ if(ai.get.attitude(target,player)>0){ return -0.5; } return -1; } return 1; } }, tag:{ loseCard:1 } } }, fudichouxin:{ fullskin:true, type:'trick', enable:true, filterTarget:function(card,player,target){ return player!=target&&target.get('h').length; }, content:function(){ "step 0" player.chooseToCompare(target).clear=false; "step 1" if(result.bool){ player.gain([result.player,result.target]); result.player.clone.moveTo(player).delete(); result.target.clone.moveTo(player).delete(); } else if(!result.cancelled){ result.player.clone.delete(); result.target.clone.delete(); } }, ai:{ order:4, result:{ target:function(player){ if(player.get('h').length<=1) return 0; return -1; }, player:function(player){ if(player.get('h').length<=1) return 0; return 0.5; } }, tag:{ loseCard:1 } } }, shuiyanqijun:{ fullskin:true, type:'trick', enable:true, filterTarget:function(card,player,target){ return target.num('e'); }, selectTarget:-1, content:function(){ if(target.num('e')) target.chooseToDiscard('e',true); }, ai:{ order:9, result:{ target:-1 }, tag:{ multitarget:1, multineg:1 } } }, toulianghuanzhu:{ fullskin:true, type:'trick', enable:true, filterTarget:function(card,player,target){ return target.num('h')>0; }, selectTarget:2, multitarget:true, targetprompt:['被拿牌','得牌'], content:function(){ "step 0" targets[0].addTempSkill('toulianghuanzhu2','phaseAfter'); var hs=targets[0].get('h'); event.num=Math.min(2,hs.length); if(event.num){ targets[1].gain(hs.randomGets(event.num)); targets[0].$give(event.num,targets[1]); game.delay(); } else{ event.finish(); } "step 1" if(targets[1].num('h')){ if(_status.auto&&targets[1]==game.me){ game.delay(); } targets[1].chooseCard(true,event.num,'选择'+get.cnNumber(event.num)+'张手牌还给'+get.translation(targets[0])).ai=ai.get.disvalue; } else{ event.finish(); } "step 2" targets[0].gain(result.cards); targets[1].$give(event.num,targets[0]); }, ai:{ order:6.5, tag:{ loseCard:1, multitarget:1, multineg:1 }, result:{ target:function(player,target){ if(ui.selected.targets.length){ if(target==player&&target.num('h')<=1) return 0; return 0.5; } if(target.skills.contains('toulianghuanzhu2')) return 0; return -0.5; } }, useful:3, value:7 } }, }, skill:{ toulianghuanzhu2:{}, _chenhuodajie:{ trigger:{global:'damageEnd'}, direct:true, filter:function(event,player){ if(event.player==player) return false; if(!event.player.num('he')) return false; if(player.num('h','chenhuodajie')) return true; var mn=player.get('e','5'); if(mn&&mn.name=='muniu'&&mn.cards&&mn.cards.length){ for(var i=0;i