丁原【慈孝】bugfix

修复【慈孝】事件化获得charlotte标记技能的池沼操作,加回义子标记彩蛋
This commit is contained in:
mengxinzxz 2024-03-19 11:08:52 +08:00
parent 5fdcc8a466
commit 1dffadeca0
1 changed files with 15 additions and 21 deletions

View File

@ -6599,16 +6599,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
direct:true,
filter:function(event,player){
if(!game.hasPlayer(function(current){
return current.hasSkill('cixiao_yizi');
return current.hasSkill('panshi');
})) return true;
return player.countCards('he')>=1&&game.hasPlayer(function(current){
return current!=player&&!current.hasSkill('cixiao_yizi');
return current!=player&&!current.hasSkill('panshi');
});
},
content:function(){
'step 0'
if(game.hasPlayer(function(current){
return current.hasSkill('cixiao_yizi');
return current.hasSkill('panshi');
})) event.goto(2);
else player.chooseTarget(lib.filter.notMe,get.prompt('cixiao'),'令一名其他角色获得「义子」标记').set('ai',function(target){
var player=_status.event.player;
@ -6619,19 +6619,19 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(result.bool){
var target=result.targets[0];
player.logSkill('cixiao',target);
target.addSkills('cixiao_yizi');
target.addSkills('panshi');
}
event.finish();
'step 2'
var list=game.filterPlayer(function(current){
return current.hasSkill('cixiao_yizi');
return current.hasSkill('panshi');
});
player.chooseCardTarget({
prompt:get.prompt('cixiao'),
prompt2:('弃置一张牌并将'+get.translation(list)+'的「义子」标记转移给其他角色'),
position:'he',
filterTarget:function(card,player,target){
return player!=target&&!target.hasSkill('cixiao_yizi');
return player!=target&&!target.hasSkill('panshi');
},
filterCard:lib.filter.cardDiscardable,
ai1:function(card){
@ -6654,12 +6654,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.logSkill('cixiao');
player.discard(result.cards).delay=false;
player.line2(game.filterPlayer(function(current){
if(current.hasSkill('cixiao_yizi')){
current.removeSkills('cixiao_yizi');
if(current.hasSkill('panshi')){
current.removeSkills('panshi');
return true;
}
}).concat(result.targets),'green');
target.addSkills('cixiao_yizi');
target.addSkills('panshi');
}
else event.finish();
'step 4'
@ -6667,18 +6667,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
derivation:'panshi',
ai:{threaten:8},
subSkill: {
yizi: {
mark: true,
charlotte: true,
marktext: '子',
intro: {
name: '义子',
content: '具有〖叛弑〗'
},
group: 'panshi'
}
}
},
panshi:{
trigger:{player:'phaseZhunbeiBegin'},
@ -6714,6 +6702,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.give(result.cards,target);
}
},
mark:true,
marktext:'子',
intro:{
name:'义子',
content:'我是儿子',
},
group:'panshi_damage',
},
panshi_damage:{