修改隐匿状态时加体力上限也会登场;修复十周年孙寒华bug
This commit is contained in:
parent
3c9cfba80f
commit
dfcf072b94
|
@ -1483,7 +1483,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
var effect=player.getUseValue(button.link[2]);
|
var effect=player.getUseValue(button.link[2]);
|
||||||
if(player.countCards('hs',button.link[2])>0) return 0;
|
if(player.countCards('hs',button.link[2])>0) return 0;
|
||||||
if((player.getStat('skill').reqice||0)<player.countMark('reqice_mark')+1){
|
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;
|
if(effect>0) return effect;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -4802,6 +4802,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
}]
|
}]
|
||||||
];
|
];
|
||||||
var name=evt.name;
|
var name=evt.name;
|
||||||
|
if(trigger.name=='loseAsync') name=evt.type;
|
||||||
var list=['useCard','respond','discard','other'];
|
var list=['useCard','respond','discard','other'];
|
||||||
if(!list.contains(name)) name='other';
|
if(!list.contains(name)) name='other';
|
||||||
for(var i=0;i<1+player.countMark('dcqinghuang_add');i++){
|
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:{
|
dcyinlu:{
|
||||||
audio:2,
|
audio:2,
|
||||||
|
|
|
@ -28674,7 +28674,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
_showHiddenCharacter:{
|
_showHiddenCharacter:{
|
||||||
trigger:{player:['changeHp','phaseBeginStart','loseMaxHpBegin']},
|
trigger:{player:['changeHp','phaseBeginStart','loseMaxHpBegin','gainMaxHpBegin']},
|
||||||
firstDo:true,
|
firstDo:true,
|
||||||
forced:true,
|
forced:true,
|
||||||
popup:false,
|
popup:false,
|
||||||
|
|
Loading…
Reference in New Issue