修复旧周泰的一个bug

This commit is contained in:
copcap 2023-11-27 05:19:49 +08:00
parent f4626e4649
commit cf61130543
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
1 changed files with 5 additions and 2 deletions

View File

@ -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);