为自动循环发动的技能增加技能状态检测

This commit is contained in:
PZ157 2023-11-24 13:31:12 +08:00
parent db979c97a1
commit 4776f22f4d
7 changed files with 17 additions and 15 deletions

View File

@ -6840,8 +6840,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addToExpansion(result.cards,player,'give').gaintag.add('quanji');
}
"step 4"
if(event.count>0&&player.hasSkill('requanji')){
player.chooseBool(get.prompt2('requanji')).set('frequentSkill','requanji');
if(event.count>0&&player.hasSkill(event.name)&&!get.is.blocked(event.name,player)){
player.chooseBool(get.prompt2('requanji')).set('frequentSkill',event.name);
}
else event.finish();
"step 5"
@ -12909,8 +12909,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.draw();
event.count--;
"step 2"
if(event.count){
player.chooseBool(get.prompt2('mingzhe')).set('frequentSkill',event.name);
if(event.count&&player.hasSkill(event.name)&&!get.is.blocked(event.name,player)){
player.chooseBool(get.prompt2('mingzhe')).set('frequentSkill',event.name);
}
else event.finish();
"step 3"

View File

@ -4593,8 +4593,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 4'
if(cards.length) player.gain(cards,'gain2','log');
'step 5'
if(event.count>0&&player.hasSkill('spyinzhi')){
player.chooseBool(get.prompt2('spyinzhi')).set('frequentSkill','spyinzhi');
if(event.count>0&&player.hasSkill(event.name)&&!get.is.blocked(event.name,player)){
player.chooseBool(get.prompt2('spyinzhi')).set('frequentSkill',event.name);
}
else event.finish();
'step 6'

View File

@ -5510,8 +5510,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addToExpansion(result.cards,'giveAuto',player).gaintag.add('xinquanji');
}
'step 4'
if(event.count>0&&player.hasSkill('xinquanji')){
player.chooseBool(get.prompt2('xinquanji')).set('frequentSkill','xinquanji');
if(event.count>0&&player.hasSkill(event.name)&&!get.is.blocked(event.name,player)){
player.chooseBool(get.prompt2('xinquanji')).set('frequentSkill',event.name);
}
else event.finish();
'step 5'

View File

@ -4493,7 +4493,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.syncStorage('huashen');
player.updateMarks('huashen');
'step 2'
if(--event.num>0) player.chooseBool(get.prompt2('xinsheng')).set('frequentSkill','xinsheng');
if(--event.num>0&&player.hasSkill(event.name)&&!get.is.blocked(event.name,player)){
player.chooseBool(get.prompt2('xinsheng')).set('frequentSkill',event.name);
}
else event.finish();
'step 3'
if(result.bool&&player.hasSkill('xinsheng')){

View File

@ -23349,8 +23349,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.draw();
event.count--;
"step 2"
if(event.count){
player.chooseBool(get.prompt2('mingzhe')).set('frequentSkill','mingzhe');
if(event.count&&player.hasSkill(event.name)&&!get.is.blocked(event.name,player)){
player.chooseBool(get.prompt2('mingzhe')).set('frequentSkill',event.name);
}
else event.finish();
"step 3"

View File

@ -649,7 +649,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
animate:'draw',
}).setContent('gaincardMultiple');
'step 6'
if(event.count>0&&player.hasSkill(event.name)){
if(event.count>0&&player.hasSkill(event.name)&&!get.is.blocked(event.name,player)){
player.chooseBool(get.prompt2(event.name)).set('frequentSkill',event.name);
}
else event.finish();
@ -1937,7 +1937,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
event.count--;
player.draw(2);
"step 2"
if(event.count>0){
if(event.count>0&&player.hasSkill(event.name)&&!get.is.blocked(event.name,player)){
player.chooseBool(get.prompt2('xiaoji')).set('frequentSkill','xiaoji').ai=lib.filter.all;
}
"step 3"

View File

@ -10852,8 +10852,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addToExpansion(result.cards,player,'giveAuto').gaintag.add('quanji');
}
"step 4"
if(event.count>0&&player.hasSkill('quanji')){
player.chooseBool(get.prompt2('quanji')).set('frequentSkill','quanji');
if(event.count>0&&player.hasSkill(event.name)&&!get.is.blocked(event.name,player)){
player.chooseBool(get.prompt2('quanji')).set('frequentSkill',event.name);
}
else event.finish();
"step 5"