diff --git a/character/jsrg.js b/character/jsrg.js index 2ba385f8f..5f526df91 100644 --- a/character/jsrg.js +++ b/character/jsrg.js @@ -1806,10 +1806,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return player.getHistory('lose').length; }, frequent:true, - content(){ - 'step 0' - player.judge(); - 'step 1' + async content(event,trigger,player){ + const {result} = await player.judge(); let num = 0; game.getGlobalHistory('cardMove',evt=>{ if(evt.name!='cardsDiscard'){ diff --git a/character/tw.js b/character/tw.js index 8e0cab2a5..617b494b2 100644 --- a/character/tw.js +++ b/character/tw.js @@ -4773,15 +4773,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ 'step 3' if(result.bool) target.addExpose(0.1); else{ - var next=game.createEvent('twdingzhen_addSkill'); - event.next.remove(next); - trigger.after.push(next); - next.target=target; - next.player=player; - next.setContent(function(){ - target.addSkill('twdingzhen_target'); - target.markAuto('twdingzhen_target',[player]); - }) + target.addSkill('twdingzhen_target'); + target.markAuto('twdingzhen_target',[player]); } 'step 4' if(event.num