From 2b35db3c6ff4b812036421a1b78a2f7db3338ecd Mon Sep 17 00:00:00 2001 From: Rintim Date: Wed, 20 Sep 2023 10:27:49 +0800 Subject: [PATCH] fix step-forward varible. --- character/jsrg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/character/jsrg.js b/character/jsrg.js index baaaab981..6c757c174 100644 --- a/character/jsrg.js +++ b/character/jsrg.js @@ -1257,6 +1257,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ [listx,'vcard'], ]).set('ai',()=>Math.random()+1); } + event.list=list; 'step 1' if(result.bool){ var name=result.links[0][2],nature=result.links[0][3]; @@ -1273,7 +1274,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ prompt2:str, filterCard:lib.filter.cardDiscardable, position:'he', - goon:get.attitude(player,trigger.player)>1&&(evt.card?get.effect(trigger.player,evt.card,evt.player,player)<0:get.effect(trigger.player,{name:list[0]},trigger.player,player)>0), + goon:get.attitude(player,trigger.player)>1&&(evt.card?get.effect(trigger.player,evt.card,evt.player,player)<0:get.effect(trigger.player,{name:event.list[0]},trigger.player,player)>0), ai1:function(card){ if(_status.event.goon) return 6-get.value(card); return 0;