v1.9.54.1

This commit is contained in:
libccy 2018-08-13 23:20:32 +08:00
parent ec79bdda51
commit 16b958a1fe
3 changed files with 16 additions and 10 deletions

View File

@ -8046,7 +8046,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
for(var i=0;i<list.length;i++){ for(var i=0;i<list.length;i++){
list[i]=['锦囊','',list[i]]; list[i]=['锦囊','',list[i]];
} }
return ui.create.dialog([list,'vcard']); return ui.create.dialog(get.translation('qice'),[list,'vcard']);
}, },
filter:function(button,player){ filter:function(button,player){
return lib.filter.filterCard({name:button.link[2]},player,_status.event.getParent()); return lib.filter.filterCard({name:button.link[2]},player,_status.event.getParent());

View File

@ -12156,8 +12156,9 @@
lining=[lining]; lining=[lining];
} }
if(lining.length){ if(lining.length){
var evt=event.getParent()._trigger;
lining.addArray(game.filterPlayer(function(current){ lining.addArray(game.filterPlayer(function(current){
return current.sameIdentityAs(lining[0],true); return current.sameIdentityAs(lining[0],true)&&evt.targets&&evt.targets.contains(current);
})); }));
} }
if(lining.length==1){ if(lining.length==1){

View File

@ -1103,7 +1103,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
for(var i=0;i<list.length;i++){ for(var i=0;i<list.length;i++){
list[i]=['锦囊','',list[i]]; list[i]=['锦囊','',list[i]];
} }
return ui.create.dialog([list,'vcard']); return ui.create.dialog(get.translation('gzqice'),[list,'vcard']);
}, },
filter:function(button,player){ filter:function(button,player){
var card={name:button.link[2]}; var card={name:button.link[2]};
@ -1139,12 +1139,14 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
var player=_status.event.player; var player=_status.event.player;
var players=game.filterPlayer(); var players=game.filterPlayer();
var shunshou=false; var shunshou=false;
var guohe=false;
var juedou=false;
for(var i=0;i<players.length;i++){ for(var i=0;i<players.length;i++){
if(!players[i].isOut()){ if(!players[i].isOut()){
if(players[i].hp==1&&get.damageEffect(players[i],player,player)>0&&!players[i].hasSha()){ if(players[i].hp==1&&get.damageEffect(players[i],player,player)>0&&!players[i].hasSha()){
return (button.link[2]=='juedou')?2:-1; juedou=true;
} }
if(player.canUse('shunshou',players[i])&&get.attitude(player,players[i])<0){ if(player.canUse('shunshou',players[i])&&get.attitude(player,players[i])<-1){
shunshou=true; shunshou=true;
} }
if(players[i].countCards('j')&&get.attitude(player,players[i])>2){ if(players[i].countCards('j')&&get.attitude(player,players[i])>2){
@ -1152,9 +1154,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
} }
} }
if(guohe) return (button.link[2]=='guohe')?1.5:-1; if(juedou&&button.link[2]=='juedou') return 3;
if(shunshou) return (button.link[2]=='shunshou')?1:-1; if(guohe&&button.link[2]=='guohe') return 2;
return (button.link[2]=='wuzhong')?1:-1; if(shunshou&&button.link[2]=='shunshou') return 1.5;
if(button.link[2]=='wuzhong') return 1;
return 0;
}, },
backup:function(links,player){ backup:function(links,player){
return { return {
@ -1182,6 +1186,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
audio:2, audio:2,
popname:true, popname:true,
viewAs:{name:links[0][2]}, viewAs:{name:links[0][2]},
ai1:function(){
return 1;
}
} }
}, },
prompt:function(links,player){ prompt:function(links,player){
@ -1198,8 +1205,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
for(var i=0;i<cards.length;i++){ for(var i=0;i<cards.length;i++){
num+=Math.max(0,get.value(cards[i],player,'raw')); num+=Math.max(0,get.value(cards[i],player,'raw'));
} }
num/=cards.length;
num*=Math.min(cards.length,player.hp);
return 12-num; return 12-num;
} }
}, },