minor fix

This commit is contained in:
copcap 2023-11-21 21:07:05 +08:00
parent 55692dc190
commit ad2a5c32b0
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
1 changed files with 2 additions and 2 deletions

View File

@ -274,14 +274,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
die:{ die:{
trigger:{player:'die'}, trigger:{player:'die'},
filter:function(event,player){ filter:function(event,player){
return game.hasPlayer(current=>current.additionalSkills(`wuling_${player.playerid}`)); return game.hasPlayer(current=>current.additionalSkills[`wuling_${player.playerid}`]);
}, },
forced:true, forced:true,
locked:false, locked:false,
forceDie:true, forceDie:true,
content:function(){ content:function(){
var targets=game.filterPlayer(current=>{ var targets=game.filterPlayer(current=>{
return current.additionalSkills(`wuling_${player.playerid}`); return current.additionalSkills[`wuling_${player.playerid}`];
}); });
player.line(targets); player.line(targets);
targets.forEach(current=>current.removeAdditionalSkill(`wuling_${player.playerid}`)); targets.forEach(current=>current.removeAdditionalSkill(`wuling_${player.playerid}`));