small bugfix
This commit is contained in:
parent
cbd1a39f3b
commit
82616cec47
|
@ -310,8 +310,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
if(num) target.draw(num);
|
if(num) target.draw(num);
|
||||||
target.when('phaseDiscardEnd')
|
target.when('phaseDiscardEnd')
|
||||||
.then(()=>{
|
.then(()=>{
|
||||||
|
if(!trigger.cards||!trigger.cards.length||!player.hasDisabledSlot()){
|
||||||
|
event.finish();
|
||||||
|
return;
|
||||||
|
}
|
||||||
const num=trigger.cards.length;
|
const num=trigger.cards.length;
|
||||||
if(!num||!player.hasDisabledSlot()) return;
|
|
||||||
let list=[];
|
let list=[];
|
||||||
for(let i=1;i<6;i++){
|
for(let i=1;i<6;i++){
|
||||||
if(player.hasDisabledSlot(i)){
|
if(player.hasDisabledSlot(i)){
|
||||||
|
|
Loading…
Reference in New Issue