及时移除【凝寒】全局效果

This commit is contained in:
157 2023-12-25 14:59:47 +08:00
parent 6826467687
commit cb14094876
1 changed files with 15 additions and 1 deletions

View File

@ -678,13 +678,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
jsrgninghan:{
audio:2,
init:(player)=>{
game.addGlobalSkill('jsrgninghan_frozen');
},
onremove:(player)=>{
game.removeGlobalSkill('jsrgninghan_frozen');
},
trigger:{global:'damageEnd'},
filter:function(event,player){
if(!event.hasNature('ice')) return false;
return event.cards&&event.cards.filterInD().length;
},
forced:true,
global:'jsrgninghan_frozen',
content:function(){
var cards=trigger.cards.filterInD();
player.addToExpansion(cards,'gain2').gaintag.add('jsrgshacheng');
@ -701,6 +706,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(lg) return num+0.15*Math.sign(get.attitude(player,lg));
}
}
},
trigger:{player:'dieAfter'},
filter:(event,player)=>{
return !game.hasPlayer(current=>!current.hasSkill('jsrgninghan'));
},
silent:true,
forceDie:true,
content:()=>{
game.removeGlobalSkill('jsrgninghan_frozen');
}
},
},