diff --git a/card/gwent.js b/card/gwent.js index 969278a5c..976f51da4 100644 --- a/card/gwent.js +++ b/card/gwent.js @@ -431,11 +431,11 @@ game.import('card',function(lib,game,ui,get,ai,_status){ return att; } return Math.abs(att/2); - })[0]; + },'item'); event.aitarget=target; var list=[]; for(var i in lib.character){ - if(!lib.filter.characterDisabled(i)&&lib.character[i][2]>=5){ + if(!lib.filter.characterDisabled(i)){ list.push(i); } } diff --git a/character/xianjian.js b/character/xianjian.js index 01505b8b3..4692a2821 100644 --- a/character/xianjian.js +++ b/character/xianjian.js @@ -108,7 +108,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ filterCard:function(card,player){ return !(player.storage.lingdi||[]).contains(get.suit(card)); }, - check:function(){ + check:function(card){ return 8-get.value(card); }, content:function(){ @@ -119,6 +119,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.storage.lingdi.add(get.suit(cards[0])); }, ai:{ + threaten:1.2, order:7, result:{ target:1