star曹仁【砺锋】ai优化2
This commit is contained in:
parent
b9f0cb8768
commit
4d68edbf01
|
@ -138,7 +138,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
audio:2,
|
audio:2,
|
||||||
enable:'chooseToUse',
|
enable:'chooseToUse',
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(!event.filterCard({name:'sha'})&&!event.filterCard({name:'wuxie'})) return false;
|
if(!event.filterCard({name:'sha'},player,event)&&!event.filterCard({name:'wuxie'},player,event)) return false;
|
||||||
return player.countCards('h',card=>{
|
return player.countCards('h',card=>{
|
||||||
return !player.getStorage('starlifeng_count').contains(get.color(card,player))||_status.connectMode;
|
return !player.getStorage('starlifeng_count').contains(get.color(card,player))||_status.connectMode;
|
||||||
});
|
});
|
||||||
|
@ -151,7 +151,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return ui.create.dialog('砺锋',[list,'vcard']);
|
return ui.create.dialog('砺锋',[list,'vcard']);
|
||||||
},
|
},
|
||||||
check:function(button){
|
check:function(button){
|
||||||
return _status.event.player.getUseValue({name:button.link[2],nature:button.link[3]});
|
var player=_status.event.player;
|
||||||
|
return _status.event.getParent().type=='phase'?player.getUseValue({name:button.link[2]}):1
|
||||||
},
|
},
|
||||||
backup:function(links,player){
|
backup:function(links,player){
|
||||||
return {
|
return {
|
||||||
|
@ -197,6 +198,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
})) return false;
|
})) return false;
|
||||||
},
|
},
|
||||||
order:10,
|
order:10,
|
||||||
|
result:{player:1},
|
||||||
},
|
},
|
||||||
group:'starlifeng_mark',
|
group:'starlifeng_mark',
|
||||||
subSkill:{
|
subSkill:{
|
||||||
|
|
Loading…
Reference in New Issue