Add the ability for lib.element.player.damage to detect lib.element.event.customSource.

This commit is contained in:
Tipx-L 2023-09-20 02:41:16 -07:00
parent 9e7e5eba2c
commit 7cee261cc7
2 changed files with 2 additions and 2 deletions

View File

@ -895,7 +895,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
} }
"step 1" "step 1"
if(result.bool==false){ if(result.bool==false){
target.damage(event.baseDamage,event.customSource||player); target.damage(event.baseDamage);
} }
}, },
ai:{ ai:{

View File

@ -23780,7 +23780,7 @@
} }
if(next.card==undefined&&!nocard) next.card=event.card; if(next.card==undefined&&!nocard) next.card=event.card;
if(next.cards==undefined&&!nocard) next.cards=event.cards; if(next.cards==undefined&&!nocard) next.cards=event.cards;
if(next.source==undefined&&!nosource) next.source=event.player; if(next.source==undefined&&!nosource) next.source=event.customSource||event.player;
if(next.source&&next.source.isDead()) delete next.source; if(next.source&&next.source.isDead()) delete next.source;
if(next.unreal==undefined) next.unreal=false; if(next.unreal==undefined) next.unreal=false;
if(next.num==undefined) next.num=1; if(next.num==undefined) next.num=1;