Add the ability for lib.element.player.damage to detect lib.element.event.customSource.
This commit is contained in:
parent
9e7e5eba2c
commit
7cee261cc7
|
@ -895,7 +895,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
"step 1"
|
||||
if(result.bool==false){
|
||||
target.damage(event.baseDamage,event.customSource||player);
|
||||
target.damage(event.baseDamage);
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
|
|
@ -23780,7 +23780,7 @@
|
|||
}
|
||||
if(next.card==undefined&&!nocard) next.card=event.card;
|
||||
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.unreal==undefined) next.unreal=false;
|
||||
if(next.num==undefined) next.num=1;
|
||||
|
|
Loading…
Reference in New Issue