枭姬改为新写法
This commit is contained in:
parent
0034ddb5f0
commit
0fdd3750ed
|
@ -1760,23 +1760,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
|
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
|
||||||
},
|
},
|
||||||
frequent:true,
|
frequent:true,
|
||||||
filter(event,player){
|
getIndex(event, player){
|
||||||
const evt=event.getl(player);
|
const evt=event.getl(player);
|
||||||
return evt&&evt.player==player&&evt.es&&evt.es.length>0;
|
if (evt && evt.player === player && evt.es) return evt.es.length;
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
async content(event,trigger,player){
|
async content(event,trigger,player){
|
||||||
event.count=trigger.getl(player).es.length;
|
|
||||||
while(event.count-->0){
|
|
||||||
player.draw(2);
|
player.draw(2);
|
||||||
if(!event.count||!player.hasSkill(event.name)) break;
|
|
||||||
if(!get.is.blocked(event.name,player)){
|
|
||||||
const chooseBoolEvent=player.chooseBool(get.prompt2('xiaoji')).set('frequentSkill','xiaoji');
|
|
||||||
chooseBoolEvent.ai=lib.filter.all;
|
|
||||||
const {result:{bool}}=await chooseBoolEvent;
|
|
||||||
if(bool) player.logSkill('xiaoji');
|
|
||||||
else break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
noe:true,
|
noe:true,
|
||||||
|
|
|
@ -12797,6 +12797,11 @@ return event.junling=='junling5'?1:0;});
|
||||||
inherit:'xiaoji',
|
inherit:'xiaoji',
|
||||||
audio:'xiaoji',
|
audio:'xiaoji',
|
||||||
preHidden:true,
|
preHidden:true,
|
||||||
|
getIndex(event, player){
|
||||||
|
const evt=event.getl(player);
|
||||||
|
if (evt && evt.player === player && evt.es) return 1;
|
||||||
|
return false;
|
||||||
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
player.draw(player==_status.currentPhase?1:3);
|
player.draw(player==_status.currentPhase?1:3);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue