diff --git a/character/ddd.js b/character/ddd.js index 29aa69783..515e2ee68 100644 --- a/character/ddd.js +++ b/character/ddd.js @@ -4815,17 +4815,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){ cardEnabled(card,player){ if(!player.storage['dddlianer_ceiling']) return; var num=get.number(card); - if(typeof num!='number'||player.storage['dddlianer_ceiling']<=num) return false; + if(num!='unsure'&&(typeof num!='number'||player.storage['dddlianer_ceiling']<=num)) return false; }, cardRespondable(card,player){ if(!player.storage['dddlianer_ceiling']) return; var num=get.number(card); - if(typeof num!='number'||player.storage['dddlianer_ceiling']<=num) return false; + if(num!='unsure'&&(typeof num!='number'||player.storage['dddlianer_ceiling']<=num)) return false; }, cardSavable(card,player){ if(!player.storage['dddlianer_ceiling']) return; var num=get.number(card); - if(typeof num!='number'||player.storage['dddlianer_ceiling']<=num) return false; + if(num!='unsure'&&(typeof num!='number'||player.storage['dddlianer_ceiling']<=num)) return false; }, } } diff --git a/character/diy.js b/character/diy.js index 6454b6ff0..030c252e3 100755 --- a/character/diy.js +++ b/character/diy.js @@ -8203,15 +8203,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){ locked:false, mod:{ targetInRange(card,player){ - var list=player.getExpansions('ao_diegui'); - for(var i=0;iplayer.storage.qiangwu) return Infinity; + if (card.name == 'sha') { + const num = get.number(card); + if (num == 'unsure' || num > player.storage.qiangwu) return true; + } } }, trigger:{player:'useCard1'}, diff --git a/character/sp2.js b/character/sp2.js index 6d6fac567..fe6fdc3bc 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -1566,10 +1566,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, mod:{ targetInRange:function(card,player){ - if(get.color(card)=='none') return true; + const color = get.color(card); + if (color === 'none' || color === 'unsure') return true; }, cardUsable:function(card){ - if(get.color(card)=='none') return Infinity; + const color = get.color(card); + if (color === 'none' || color === 'unsure') return Infinity; }, } }, @@ -6400,10 +6402,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } }, targetInRange:function(card){ - if(get.color(card)=='black') return true; + const color = get.color(card); + if (color === 'black' || color === 'unsure') return true; }, cardUsable:function(card){ - if(get.color(card)=='black') return Infinity; + const color = get.color(card); + if (color === 'black' || color === 'unsure') return Infinity; }, }, }, diff --git a/character/tw.js b/character/tw.js index 20a7465ca..72611083c 100644 --- a/character/tw.js +++ b/character/tw.js @@ -6258,7 +6258,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, mod:{ cardUsable:function(card,player){ - if(card.name=='sha'&&player.getStorage('twgongji2').includes(get.suit(card))) return Infinity; + if(card.name=='sha'){ + const suit = get.suit(card); + return suit === 'unsure' || player.getStorage('twgongji2').includes(suit); + } }, aiOrder:function(player,card,num){ if(get.name(card)=='sha'&&!player.getStorage('twgongji2').includes(get.suit(card))) return num+1; diff --git a/character/yijiang.js b/character/yijiang.js index b415f28ed..ec53d0cb3 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -1505,8 +1505,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ unlimit:{ mod:{ cardUsable:function(card,player){ - var list=lib.skill.lkbushi.getBushi(player); - if(list[0]==get.suit(card)) return Infinity; + const list = lib.skill.lkbushi.getBushi(player), suit = get.suit(card); + if (suit === 'unsure' || list[0] === suit) return Infinity; }, }, trigger:{player:'useCard1'},