修复【灵策】【介绫】【谋观星】bug

This commit is contained in:
157 2024-01-06 19:17:00 +08:00
parent f2b952eb57
commit 0a0fa7e023
3 changed files with 16 additions and 2 deletions

View File

@ -3413,7 +3413,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{global:'useCard'},
forced:true,
filter:function(event,player){
return (event.card.name=='qizhengxiangsheng'||get.zhinangs().includes(event.card.name)||player.getStorage('dinghan').includes(event.card.name))&&event.card.isCard&&event.cards.length==1;
if(!event.card.isCard||!event.cards||event.cards.length!==1) return false;
return event.card.name=='qizhengxiangsheng'||get.zhinangs().includes(event.card.name)||player.getStorage('dinghan').includes(event.card.name);
},
content:function(){
player.draw();

View File

@ -2179,6 +2179,19 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
}
}
},
count:{
intro:{
content:function(s,p){
let str='此阶段已转化过的卡牌花色:';
for(let i=0;i<s.length;i++){
str+=get.translation(s[i]);
}
return str;
}
},
charlotte:true,
onremove:true
}
}
},

View File

@ -749,7 +749,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audio:2,
trigger:{player:['phaseZhunbeiBegin','phaseJieshuBegin']},
filter:function(event,player){
var bool=player.hasCards(card=>card.hasGaintag('sbguanxing'),'s');
var bool=player.hasCard(card=>card.hasGaintag('sbguanxing'),'s');
if(event.name=='phaseZhunbei'){
var num=player.countMark('sbguanxingx');
return bool||num<=3;