修改隐匿状态时加体力上限也会登场;修复十周年孙寒华bug

This commit is contained in:
copcap 2023-07-26 15:32:49 +08:00
parent 3c9cfba80f
commit dfcf072b94
3 changed files with 32 additions and 2 deletions

View File

@ -1483,7 +1483,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var effect=player.getUseValue(button.link[2]);
if(player.countCards('hs',button.link[2])>0) return 0;
if((player.getStat('skill').reqice||0)<player.countMark('reqice_mark')+1){
if(['draw','gain'].some(i=>get.tag(button.link[2],i) >= 1)) return effect*2;
if(['draw','gain'].some(i=>get.tag(button.link[2],i) >= 1)) return effect*5;
}
if(effect>0) return effect;
return 0;

View File

@ -4802,6 +4802,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}]
];
var name=evt.name;
if(trigger.name=='loseAsync') name=evt.type;
var list=['useCard','respond','discard','other'];
if(!list.contains(name)) name='other';
for(var i=0;i<1+player.countMark('dcqinghuang_add');i++){
@ -4838,6 +4839,35 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
}
},
dcqinghuang:{
audio:2,
trigger:{player:'phaseUseBegin'},
filter:function(event,player){
return player.maxHp>1;
},
check:function(event,player){
var num1=player.countCards('h');
var num2=player.countCards('h',card=>player.hasValueTarget(card));
var num3=player.getHandcardLimit();
if(player.isDamaged()){
return num2>1||num1-num2-num3>0;
}
else{
return num2>2+Math.max(0,3-player.hp)||player.hp>2&&num1-num2-num3>2;
}
},
content:function(){
player.loseMaxHp();
player.addTempSkill('dcqinghuang_add');
player.addMark('dcqinghuang_add',1,false);
},
subSkill:{
add:{
charlotte:true,
onremove:true,
}
}
},
//孟节
dcyinlu:{
audio:2,

View File

@ -28674,7 +28674,7 @@
},
},
_showHiddenCharacter:{
trigger:{player:['changeHp','phaseBeginStart','loseMaxHpBegin']},
trigger:{player:['changeHp','phaseBeginStart','loseMaxHpBegin','gainMaxHpBegin']},
firstDo:true,
forced:true,
popup:false,