二成bugfix
This commit is contained in:
parent
020be275ed
commit
de1f7b2073
|
@ -152,8 +152,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
if(!evt._olchuming) return;
|
||||
var target=evt[evt.source==player?'player':'source'];
|
||||
if(!target.isIn()) return;
|
||||
var cards=evt.cards.filterInD('d');
|
||||
if(!cards.length) return;
|
||||
if(!mapx[target.playerid]) mapx[target.playerid]=[];
|
||||
mapx[target.playerid].addArray(evt.cards.filterInD('d'));
|
||||
mapx[target.playerid].addArray(cards);
|
||||
});
|
||||
var entries=Object.entries(mapx).map(entry=>{
|
||||
return [(_status.connectMode?lib.playerOL:game.playerMap)[entry[0]],entry[1]];
|
||||
|
|
Loading…
Reference in New Issue