minor fix
This commit is contained in:
parent
55692dc190
commit
ad2a5c32b0
|
@ -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}`));
|
||||||
|
|
Loading…
Reference in New Issue