diff --git a/character/standard.js b/character/standard.js index 753952fa5..beced1411 100644 --- a/character/standard.js +++ b/character/standard.js @@ -52,10 +52,9 @@ character.standard={ if(player.storage.hujiaing) return false; if(!player.hasZhuSkill('hujia')) return false; if(event.filterCard({name:'shan'})==false) return false; - for(var i=0;i=0) return false; @@ -243,13 +242,9 @@ character.standard={ content:function(){ "step 0" var check; - var i,num=0; - for(i=0;i=2); player.chooseTarget(get.prompt('tuxi'),[1,2],function(card,player,target){ return target.num('h')>0&&player!=target; @@ -286,17 +281,11 @@ character.standard={ audio:2, trigger:{player:'phaseDrawBegin'}, check:function(event,player){ - var i,cancel=true; if(player.num('h')<3) return false; - if(player.get('h','sha').length==0) return false; - cancel=true; - for(i=0;i=3&& - ai.get.attitude(game.players[i],player)>=3){ + var players=game.filterPlayer(); + for(var i=0;i=3&& + ai.get.attitude(players[i],player)>=3){ return 11-ai.get.value(card); } } @@ -538,8 +528,9 @@ character.standard={ target:function(card,player,target){ if(player==target&&get.type(card)=='equip'){ if(player.num('e',{subtype:get.subtype(card)})){ - for(var i=0;i0){ + var players=game.filterPlayer(); + for(var i=0;i0){ return 0; } } @@ -573,10 +564,9 @@ character.standard={ if(player.storage.jijianging) return false; if(!player.hasZhuSkill('jijiang')) return false; if(event.filterCard({name:'sha'},player,event)==false) return false; - for(var i=0;i0; var vcard={name:'shacopy',nature:card.nature,suit:card.suit}; - for(var i=0;i0){ - if(!player.canUse(card,game.players[0])){ + if(ai.get.effect(players[i],vcard,player,player)>0){ + if(!player.canUse(card,players[0])){ return [0,0.1]; } min=0; @@ -1527,11 +1513,9 @@ character.standard={ enable:'phaseUse', usable:1, filter:function(event,player){ - var num=0; - for(var i=0;i1) + return game.countPlayer(function(current){ + return current!=player&¤t.sex=='male'; + })>1; }, check:function(card){return 10-ai.get.value(card)}, filterCard:true,