Fix type check

This commit is contained in:
Spmario233 2023-08-25 23:12:49 +08:00
parent 6ffa270a5e
commit 835862f8a3
1 changed files with 3 additions and 1 deletions

View File

@ -28622,7 +28622,9 @@
var num=info.usable;
if(typeof num=='function') num=num(card,player);
num=game.checkMod(card,player,num,'cardUsable',player);
if(typeof num!='number') return get.itemtype(num)=='boolean'?num:true;
if(typeof num!='number'){
return (typeof num=='boolean')?num:true;
}
if(player.countUsed(card)<num) return true;
if(game.hasPlayer(function(current){
return game.checkMod(card,player,current,false,'cardUsableTarget',player);