update 白银狮子

This commit is contained in:
Spmario233 2023-09-09 13:23:24 +08:00
parent a5d2293a8a
commit 501bbe7b64
2 changed files with 53 additions and 29 deletions

View File

@ -453,20 +453,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
subtype:'equip2', subtype:'equip2',
loseDelay:false, loseDelay:false,
onLose:function(){ onLose:function(){
var next=game.createEvent('baiyin_recover'); player.addTempSkill('baiyin_skill_lose')
event.next.remove(next);
var evt=event.getParent();
if(evt.getlx===false) evt=evt.getParent();
evt.after.push(next);
next.player=player;
next.setContent(function(){
if(player.isDamaged()) player.logSkill('baiyin_skill');
player.recover();
});
},
filterLose:function(card,player){
if(player.hasSkillTag('unequip2')) return false;
return true;
}, },
skills:['baiyin_skill'], skills:['baiyin_skill'],
tag:{ tag:{
@ -865,6 +852,31 @@ game.import('card',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
trigger.num=1; trigger.num=1;
}, },
subSkill:{
lose:{
audio:'baiyin_skill',
forced:true,
charlotte:true,
equipSkill:true,
trigger:{
player:'loseAfter',
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
},
filter:(event,player)=>{
if(player.isHealthy()||player.hasSkillTag('unequip2')) return false;
var evt=event.getl(player);
return evt&&evt.es.some(card=>card.name=='baiyin')
},
content:function(){
var evt=trigger.getl(player);
evt.es.forEach(card=>{
if(card.name=='baiyin'){
player.recover();
}
})
},
},
},
ai:{ ai:{
filterDamage:true, filterDamage:true,
skillTagFilter:function(player,tag,arg){ skillTagFilter:function(player,tag,arg){

View File

@ -262,23 +262,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
//cardimage:"baiyin", //cardimage:"baiyin",
type:"equip", type:"equip",
subtype:"equip2", subtype:"equip2",
filterLose:function(card,player){
if(player.hasSkillTag('unequip2')) return false;
return true;
},
loseDelay:false, loseDelay:false,
onLose:function(){ onLose:function(){
var next=game.createEvent('rewrite_baiyin_recover'); player.addTempSkill('rw_baiyin_skill_lose')
event.next.remove(next);
var evt=event.getParent();
if(evt.getlx===false) evt=evt.getParent();
evt.after.push(next);
next.player=player;
next.setContent(function(){
player.logSkill('rw_baiyin_skill');
player.draw(2);
player.recover();
});
}, },
skills:["rw_baiyin_skill"], skills:["rw_baiyin_skill"],
tag:{ tag:{
@ -11576,6 +11562,32 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"rw_baiyin_skill":{ "rw_baiyin_skill":{
inherit:"baiyin_skill", inherit:"baiyin_skill",
audio:true, audio:true,
subSkill:{
lose:{
audio:'rw_baiyin_skill',
forced:true,
charlotte:true,
equipSkill:true,
trigger:{
player:'loseAfter',
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
},
filter:(event,player)=>{
if(player.hasSkillTag('unequip2')) return false;
var evt=event.getl(player);
return evt&&evt.es.some(card=>card.name=='rewrite_baiyin')
},
content:function(){
var evt=trigger.getl(player);
evt.es.forEach(card=>{
if(card.name=='rewrite_baiyin'){
player.recover();
player.draw(2);
}
})
},
},
},
}, },
"rw_lanyinjia":{ "rw_lanyinjia":{
inherit:"lanyinjia", inherit:"lanyinjia",