parent
b4580793a5
commit
929c0a4ac2
|
@ -305,9 +305,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
return typeof num=='number'&&num>0;
|
||||
},
|
||||
check:function(event,player){
|
||||
var num=get.cardNameLength(event.card);
|
||||
if(num>=player.getDamagedHp()) return true;
|
||||
return player.getHistory('useSkill',evt=>evt.skill=='clanhuanghan').length&&player.hasSkill('clanbaozu',null,false,false)&&player.awakenedSkills.includes('clanbaozu');
|
||||
let num=get.cardNameLength(event.card)-player.getDamagedHp();
|
||||
if(num>=0) return true;
|
||||
if(num<-1) return false;
|
||||
if(player.hasSkill('clanbaozu',null,false,false)&&player.awakenedSkills.includes('clanbaozu')&&player.getHistory('useSkill',evt=>{
|
||||
return evt.skill=='clanhuanghan';
|
||||
}).length) return true;
|
||||
return false;
|
||||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
|
@ -320,7 +324,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
game.log(player,'恢复了技能','#【保族】');
|
||||
}
|
||||
},
|
||||
ai:{threaten:3},
|
||||
ai:{
|
||||
threaten:3,
|
||||
effect:{
|
||||
target:(card,player,target)=>{
|
||||
if(!get.tag(card,'damage')||player.hasSkillTag('jueqing',false,target)) return;
|
||||
let num=get.cardNameLength(card)-target.getDamagedHp();
|
||||
if(num>0) return [1,num+0.1];
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
//族钟会
|
||||
clanyuzhi:{
|
||||
|
|
|
@ -1126,6 +1126,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},player,evt);
|
||||
},
|
||||
check:function(button){
|
||||
if(button.link[2]==='tao'){
|
||||
let dying=_status.event.getParent(2).dying;
|
||||
if(dying) return get.effect(dying,{
|
||||
name:'tao',
|
||||
isCard:true,
|
||||
storage:{jsrgfenjian:true},
|
||||
},_status.event.player);
|
||||
}
|
||||
return _status.event.player.getUseValue({
|
||||
name:button.link[2],
|
||||
isCard:true,
|
||||
|
@ -1167,7 +1175,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
order:function(item,player){
|
||||
return Math.max(get.order({name:'juedou'}),get.order({name:'tao'}))+0.2;
|
||||
},
|
||||
result:{player:1},
|
||||
result:{
|
||||
player:(player)=>{
|
||||
if(_status.event.dying) return 2*get.sgnAttitude(player,_status.event.dying);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
},
|
||||
subSkill:{
|
||||
effect:{
|
||||
|
|
|
@ -5972,7 +5972,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
target:(card,player,target)=>{
|
||||
if(player===target) return;
|
||||
if(game.hasPlayer2(current=>{
|
||||
return current.hasHistory('useCard',evt=>evt.card.name==card.name&&evt.targets&&evt.targets.includes(player));
|
||||
return current.hasHistory('useCard',evt=>evt.card.name==card.name&&evt.targets&&evt.targets.includes(target));
|
||||
})&&(card.name=='sha'||get.type(card)=='trick')) return 'zeroplayertarget';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue