修复旧周泰的一个bug
This commit is contained in:
parent
f4626e4649
commit
cf61130543
|
@ -6961,8 +6961,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
event.count=trigger.num;
|
event.count=trigger.num;
|
||||||
'step 1'
|
'step 1'
|
||||||
event.count--;
|
event.count--;
|
||||||
if((player.hp+player.getExpansions('gzbuqu').length)>1){
|
var cards=player.getExpansions('gzbuqu'),count=cards.length;
|
||||||
player.chooseCardButton('不屈:移去一张“创”',true,player.getExpansions('gzbuqu')).set('ai',function(button){
|
if(count>0&&(player.hp+count)>1){
|
||||||
|
if(count==1) event._result={links:cards};
|
||||||
|
else player.chooseCardButton('不屈:移去一张“创”',true,cards).set('ai',function(button){
|
||||||
var buttons=get.selectableButtons();
|
var buttons=get.selectableButtons();
|
||||||
for(var i=0;i<buttons.length;i++){
|
for(var i=0;i<buttons.length;i++){
|
||||||
if(buttons[i]!=button&&
|
if(buttons[i]!=button&&
|
||||||
|
@ -6974,6 +6976,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else event.finish();
|
||||||
'step 2'
|
'step 2'
|
||||||
var cards=result.links;
|
var cards=result.links;
|
||||||
player.loseToDiscardpile(cards);
|
player.loseToDiscardpile(cards);
|
||||||
|
|
Loading…
Reference in New Issue