修复【畜鸣】无伤害来源报错的bug

This commit is contained in:
157 2024-01-06 08:57:10 +08:00
parent 9c987a59c5
commit 96ab087df8
1 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player:'damageBegin3',
},
filter:function(event,player){
return event.source!=event.player;
if(event.source===event.player) return false;
if(!event.card||!event.cards||!event.cards.length) return true;
let target=event[player===event.source?'player':'source'];
return target&&target.isIn();
},
forced:true,
content:function*(event,map){