This commit is contained in:
libccy 2018-02-08 20:36:27 +08:00
parent be9ec4290d
commit 15d9ae15cb
5 changed files with 14 additions and 4 deletions

View File

@ -3315,7 +3315,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
});
event.targets.sortBySeat();
'step 2'
if(event.targets.length){
if(event.targets.length&&target.isIn()){
event.current=event.targets.shift();
if(event.current.hasSha()){
event.current.chooseToUse({name:'sha'},'是否对'+get.translation(target)+'使用一张杀?',target,-1);

View File

@ -2410,7 +2410,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
viewAsFilter:function(player){
if(!player.countCards('he',{suit:'spade'})) return false;
},
prompt:'将一张黑桃牌当作无中生有使用',
prompt:'将一张黑桃牌当作无中生有使用',
check:function(card){return 7-get.value(card)},
ai:{
threaten:1.4,

View File

@ -782,7 +782,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
ai:{
order:5,
expose:0.2,
return:{
result:{
target:function(player,target){
return 1/Math.max(1,target.hp);
}

View File

@ -631,6 +631,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
ai:{
effect:function(card,player,target){
if(!target.hasFriend()) return;
if(player==target) return;
var type=get.type(card);
var nh=target.countCards();
if(type=='trick'){

View File

@ -266,7 +266,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.logSkill('cyqiaoxie');
player.chooseUseTarget(game.createCard(result.links[0][2]));
}
}
},
ai:{
noe:true,
reverseEquip:true,
effect:{
target:function(card,player,target,current){
if(get.type(card)=='equip') return [1,3];
}
}
}
},
cyxianjiang:{
trigger:{player:'useCardToBegin'},