崔毛【征辟】bugfix
This commit is contained in:
parent
6693d1c000
commit
3d47310b9b
|
@ -208,7 +208,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
player.when('phaseUseEnd').filter(evt=>evt==trigger).then(()=>{
|
player.when('phaseUseEnd').filter(evt=>evt==trigger).then(()=>{
|
||||||
if(target.isIn()&&target.getHistory('gain',evt=>evt.getParent('phaseUse')==trigger).length){
|
if(target.isIn()&&target.getHistory('gain',evt=>evt.getParent('phaseUse')==trigger).length){
|
||||||
player.line(target);
|
player.line(target);
|
||||||
let num=(target.countGainableCards(player,'h')>0)+(target.countCardsGainableCards(player,'e')>0);
|
let num=(target.countGainableCards(player,'h')>0)+(target.countGainableCards(player,'e')>0);
|
||||||
if(num){
|
if(num){
|
||||||
player.gainPlayerCard(target,num,'he',true).set('filterButton',button=>{
|
player.gainPlayerCard(target,num,'he',true).set('filterButton',button=>{
|
||||||
return !ui.selected.buttons.some(but=>get.position(button.link)==get.position(but.link));
|
return !ui.selected.buttons.some(but=>get.position(button.link)==get.position(but.link));
|
||||||
|
|
Loading…
Reference in New Issue