diff --git a/character/shenhua.js b/character/shenhua.js index edb6002ae..f6afbc252 100644 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -3746,6 +3746,115 @@ character.shenhua={ } } }, + gzbuqu:{ + audio:'buqu', + trigger:{player:'changeHp'}, + filter:function(event,player){ + return player.hp<=0&&event.num<0; + }, + init:function(player){ + player.storage.gzbuqu=[]; + }, + priority:-15, + intro:{ + content:'cards' + }, + group:'gzbuqu_recover', + locked:true, + frequent:true, + ondisable:true, + onremove:function(player){ + if(player.storage.gzbuqu.length){ + delete player.nodying; + player.hp=1-player.storage.gzbuqu.length; + game.log(player,'移去了不屈牌',player.storage.gzbuqu); + while(player.storage.gzbuqu.length){ + ui.discardPile.appendChild(player.storage.gzbuqu.shift()); + } + player.unmarkSkill('gzbuqu'); + player.dying({}); + } + }, + process:function(player){ + delete player.nodying; + player.markSkill('gzbuqu'); + player.syncStorage('gzbuqu'); + var nums=[]; + var cards=player.storage.gzbuqu; + for(var i=0;i0&&event.num>0; + }, + forced:true, + popup:false, + content:function(){ + 'step 0' + if(player.hp>=player.storage.gzbuqu.length){ + player.hp-=player.storage.gzbuqu.length-1; + player.update(); + while(player.storage.gzbuqu.length){ + ui.discardPile.appendChild(player.storage.gzbuqu.shift()); + } + player.unmarkSkill('gzbuqu'); + delete player.nodying; + event.finish(); + } + else{ + player.chooseCardButton('移去'+get.cnNumber(player.hp)+'张不屈牌',true,player.hp,player.storage.gzbuqu).set('ai',function(button){ + var buttons=get.selectableButtons(); + for(var i=0;i