黄承彦【解阵】改为新服结算(黄承彦死亡后技能不恢复)

This commit is contained in:
mengxinzxz 2023-10-29 13:09:48 +08:00 committed by GitHub
parent 10b1501aae
commit 1300dcb0e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 12 deletions

View File

@ -5749,9 +5749,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audio:2,
enable:'phaseUse',
usable:1,
filterTarget:function(card,player,target){
return target!=player;
},
filterTarget:lib.filter.notMe,
content:function(){
var skills=target.getSkills(null,false,false).filter(function(i){
if(i=='bazhen') return;
@ -5797,6 +5795,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
mark:true,
marktext:'阵',
intro:{
markcount:()=>0,
content:function(storage,player,skill){
if(storage.length) return '失效技能:'+get.translation(storage);
return '无失效技能';
@ -5815,7 +5814,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
onremove:true,
filter:function(event,player){
if(event.name=='die'){
return player==event.player||player.getStorage('dcjiezhen_clear').contains(event.player);
return player.getStorage('dcjiezhen_clear').contains(event.player);
}
else if(event.name=='judge'){
return event.skill=='bagua'&&player.getStorage('dcjiezhen_clear').contains(event.player);
@ -5829,14 +5828,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){
'step 0'
var targets=player.getStorage('dcjiezhen_clear');
if(trigger.name=='die'&&player==trigger.player){
for(var target of targets){
target.removeSkill('dcjiezhen_blocker');
}
player.removeSkill('dcjiezhen_clear');
event.finish();
return;
}
if(trigger.name=='phase') event.targets=targets.slice(0).sortBySeat();
else event.targets=[trigger.player];
'step 1'