From a286f89c9b68dabca26cf5b5b615cf7e77d0a0c1 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 19 May 2017 18:34:34 +0800 Subject: [PATCH] g --- card/gwent.js | 4 ++-- character/xianjian.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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