Fix type check
This commit is contained in:
parent
6ffa270a5e
commit
835862f8a3
|
@ -28622,7 +28622,9 @@
|
||||||
var num=info.usable;
|
var num=info.usable;
|
||||||
if(typeof num=='function') num=num(card,player);
|
if(typeof num=='function') num=num(card,player);
|
||||||
num=game.checkMod(card,player,num,'cardUsable',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(player.countUsed(card)<num) return true;
|
||||||
if(game.hasPlayer(function(current){
|
if(game.hasPlayer(function(current){
|
||||||
return game.checkMod(card,player,current,false,'cardUsableTarget',player);
|
return game.checkMod(card,player,current,false,'cardUsableTarget',player);
|
||||||
|
|
Loading…
Reference in New Issue