bugfix
This commit is contained in:
parent
dede4ba3f3
commit
da9ed92193
|
@ -138,7 +138,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
});
|
});
|
||||||
if(types.length){
|
if(types.length){
|
||||||
const {result:{control}}=await player.chooseControl(types).set('ai',()=>{
|
const {result:{control}}=await player.chooseControl(types).set('ai',()=>{
|
||||||
const player=get.event('player'),types=get.event('types').slice();
|
const player=get.event('player'),types=get.event('controls').slice();
|
||||||
return types.sort((a,b)=>{
|
return types.sort((a,b)=>{
|
||||||
const getNum=(type)=>{
|
const getNum=(type)=>{
|
||||||
const cards=player.getDiscardableCards(player,'h').filter(card=>get.type2(card)==type);
|
const cards=player.getDiscardableCards(player,'h').filter(card=>get.type2(card)==type);
|
||||||
|
|
Loading…
Reference in New Issue