From 24df9660f3f0c6fe150d769ac04e4a0b8c379051 Mon Sep 17 00:00:00 2001 From: libccy Date: Sat, 27 May 2017 15:57:59 +0800 Subject: [PATCH] g --- mode/versus.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mode/versus.js b/mode/versus.js index 648b5c01d..ad382bf3b 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -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); }