手杀曹嵩【亿金】bugfix(修复标记移除失败bug)
This commit is contained in:
parent
ce4476ac8f
commit
1e535df5eb
|
@ -4534,13 +4534,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
forceDie:true,
|
forceDie:true,
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(event.name=='die') return true;
|
if(event.name=='die') return true;
|
||||||
if(!lib.skill.yijin.getKane(event.player).length) return false;
|
return lib.skill.yijin.getKane(event.player).length&&event.player.additionalSkills['yijin_'+player.playerid];
|
||||||
if(event.player.additionalSkills['yijin_'+player.playerid]){
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
|
'step 0'
|
||||||
if(trigger.name=='die'){
|
if(trigger.name=='die'){
|
||||||
game.countPlayer(current=>{
|
game.countPlayer(current=>{
|
||||||
var skills=current.additionalSkills['yijin_'+player.playerid];
|
var skills=current.additionalSkills['yijin_'+player.playerid];
|
||||||
|
@ -4551,16 +4548,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
event.finish();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var skills=trigger.player.additionalSkills['yijin_'+player.playerid];
|
const skills=trigger.player.additionalSkills['yijin_'+player.playerid];
|
||||||
trigger.player.removeAdditionalSkill('yijin_'+player.playerid);
|
for(const mark of skills) trigger.player.removeMark(mark,1);
|
||||||
for(var i of skills){
|
|
||||||
trigger.player.removeMark(i,1);
|
|
||||||
trigger.player.removeSkill(i);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
'step 1'
|
||||||
|
trigger.player.removeAdditionalSkill('yijin_'+player.playerid);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
wushi:{
|
wushi:{
|
||||||
charlotte:true,
|
charlotte:true,
|
||||||
|
|
Loading…
Reference in New Issue