族钟会【挟术】bugfix
This commit is contained in:
parent
c346c6f11f
commit
61ed6c8ba5
|
@ -473,11 +473,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
trigger:{player:'damageEnd',source:'damageSource'},
|
trigger:{player:'damageEnd',source:'damageSource'},
|
||||||
filter(event,player){
|
filter(event,player){
|
||||||
if(!event.card||player.isLinked()) return false;
|
if(!event.card||player.isLinked()) return false;
|
||||||
const history=game.checkGlobalHistory('damage',evt=>{
|
if(game.getGlobalHistory('everything',evt=>{
|
||||||
if(!evt.card) return false;
|
if(evt.name!='damage'||!evt.card) return false;
|
||||||
return evt.player==player||(evt.source&&evt.source==player);
|
return evt.player==player||(evt.source&&evt.source==player);
|
||||||
});
|
}).indexOf(event)!=0) return false;
|
||||||
if(history.indexOf(event)!=0) return false;
|
|
||||||
var num=get.cardNameLength(event.card);
|
var num=get.cardNameLength(event.card);
|
||||||
return typeof num=='number'&&num>0&&player.countCards('he')>0;
|
return typeof num=='number'&&num>0&&player.countCards('he')>0;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue