二成bugfix

This commit is contained in:
copcap 2023-11-08 19:36:16 +08:00
parent 020be275ed
commit de1f7b2073
No known key found for this signature in database
GPG Key ID: 9AE7B8AF097EC926
1 changed files with 3 additions and 1 deletions

View File

@ -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]];