This commit is contained in:
libccy 2017-05-27 15:57:59 +08:00
parent b04cc39c5b
commit 24df9660f3
1 changed files with 2 additions and 1 deletions

View File

@ -773,6 +773,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}
if(duallist.length&&Math.random()<0.5){
event.friendChoice=duallist.randomGet();
list[game.me.identity].remove(event.friendChoice);
duallist.length=0;
}
else{
@ -781,7 +782,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
var myChoice=list[game.me.identity].randomGets(7);
if(duallist.length){
var myChoiceName=duallist.randomGet();
if(list[game.me.identity].contains(myChoiceName)){
if(list[game.me.identity].contains(myChoiceName)&&!myChoice.contains(myChoiceName)){
myChoice.randomRemove();
myChoice.push(myChoiceName);
}