bugfix
This commit is contained in:
parent
df7f0be439
commit
97a3027592
|
@ -1643,8 +1643,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
if(event.getg&&event.getg(target)&&event.getg(target).length&&hs_check(player,target)) return true;
|
if(event.getg&&event.getg(target)&&event.getg(target).length&&hs_check(player,target)) return true;
|
||||||
const evt=event.getl(target);
|
const evt=event.getl(target);
|
||||||
if(evt&&evt.hs&&evt.hs.length&&hs_check(player,target)) return true;
|
if(evt&&evt.hs&&evt.hs.length&&hs_check(player,target)) return true;
|
||||||
if(event.name=='equip'&&event.player==target&&(!evt||evt.cards.length!=1)&&es_check) return true;
|
if(event.name=='equip'&&event.player==target&&(!evt||evt.cards.length!=1)&&es_check(player,target)) return true;
|
||||||
return evt&&evt.es&&evt.es.length&&es_check;
|
return evt&&evt.es&&evt.es.length&&es_check(player,target);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
hs_check(player,target){
|
hs_check(player,target){
|
||||||
|
@ -1674,13 +1674,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
else{
|
else{
|
||||||
let map={};
|
let map={};
|
||||||
const hs_targets=game.filterPlayer(target=>{
|
const hs_targets=game.filterPlayer(target=>{
|
||||||
if(!get.info('dddzhengjun').hs_check) return false;
|
if(!get.info('dddzhengjun').hs_check(player,target)) return false;
|
||||||
if(trigger.getg&&trigger.getg(target)&&trigger.getg(target).length) return true;
|
if(trigger.getg&&trigger.getg(target)&&trigger.getg(target).length) return true;
|
||||||
const evt=trigger.getl(target);
|
const evt=trigger.getl(target);
|
||||||
return evt&&evt.hs&&evt.hs.length;
|
return evt&&evt.hs&&evt.hs.length;
|
||||||
});
|
});
|
||||||
const es_targets=game.filterPlayer(target=>{
|
const es_targets=game.filterPlayer(target=>{
|
||||||
if(!get.info('dddzhengjun').es_check) return false;
|
if(!get.info('dddzhengjun').es_check(player,target)) return false;
|
||||||
const evt=trigger.getl(target);
|
const evt=trigger.getl(target);
|
||||||
if(trigger.name=='equip'&&trigger.player==target&&(!evt||evt.cards.length!=1)) return true;
|
if(trigger.name=='equip'&&trigger.player==target&&(!evt||evt.cards.length!=1)) return true;
|
||||||
return evt&&evt.es&&evt.es.length;
|
return evt&&evt.es&&evt.es.length;
|
||||||
|
|
Loading…
Reference in New Issue