This commit is contained in:
libccy 2017-02-11 20:43:56 +08:00
parent 5d52df979a
commit 6e8185616d
2 changed files with 14 additions and 14 deletions

View File

@ -667,12 +667,11 @@ card.gujian={
return target!=player&&target.num('he')>0; return target!=player&&target.num('he')>0;
}, },
changeTarget:function(player,targets){ changeTarget:function(player,targets){
var target=targets[0]; game.countPlayer(function(current){
for(var i=0;i<game.players.length;i++){ if(get.distance(targets[0],current,'pure')==1&&current.num('he')){
if(get.distance(target,game.players[i],'pure')==1&&game.players[i].num('he')){ targets.push(current);
targets.push(game.players[i]);
}
} }
});
}, },
content:function(){ content:function(){
var he=target.get('he'); var he=target.get('he');
@ -689,21 +688,22 @@ card.gujian={
loseCard:1, loseCard:1,
discard:1, discard:1,
}, },
wuxie:function(){
return 0;
},
result:{ result:{
player:function(player,target){ player:function(player,target){
var num=0; return game.countPlayer(function(current){
for(var i=0;i<game.players.length;i++){ if(current==target||(get.distance(target,current,'pure')==1&&current.num('he'))){
if(game.players[i]==target||(get.distance(target,game.players[i],'pure')==1&&game.players[i].num('he'))){ var att=ai.get.attitude(player,current);
var att=ai.get.attitude(player,game.players[i]);
if(att>0){ if(att>0){
num--; return -1;
} }
else if(att<0){ else if(att<0){
num++; return 1;
} }
} }
} });
return num;
} }
} }
} }

View File

@ -22681,7 +22681,7 @@
if(typeof result=='number'){ if(typeof result=='number'){
num+=result; num+=result;
} }
else{ else if(result){
num++; num++;
} }
} }