Merge pull request #761 from universe-st/PR-Branch

修复小杀的淑丽未判断无来源伤害导致弹窗的问题
This commit is contained in:
Spmario233 2024-01-03 23:09:19 +08:00 committed by GitHub
commit 32fa9b9876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
usable:2,
filter:function(event,player){
return event.source!=player&&event.card&&event.card.name=='sha'&&event.source.isIn();
return event.source&&event.source!=player&&event.card&&event.card.name=='sha'&&event.source.isIn();
},
check:function(event,player){
return get.attitude(player,event.source)>=0||get.attitude(player,event.source)>=-4