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