From c15a1bd88856ea54d220e8152f0e577324cec963 Mon Sep 17 00:00:00 2001 From: lieren2023 <131325076+lieren2023@users.noreply.github.com> Date: Wed, 6 Mar 2024 12:52:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A7=E6=AF=8C=E4=B8=98=E4=BF=AD=E5=8F=91?= =?UTF-8?q?=E5=8A=A8=E4=B8=8D=E4=BA=86=E6=B8=85=E4=BE=A7[drlt=5Fqingce]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/shenhua.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/character/shenhua.js b/character/shenhua.js index 65daf1e5a..dec58d587 100755 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -816,24 +816,20 @@ game.import('character',function(lib,game,ui,get,ai,_status){ audio:2, enable:'phaseUse', filter:function(event,player){ - return player.storage.drlt_zhenrong&&player.storage.drlt_zhenrong.length>0; + return player.getExpansions('drlt_zhenrong').length>0; }, filterTarget:function(card,player,target){ return target.countDiscardableCards(player,'ej')>0; }, content:function(){ 'step 0' - player.chooseCardButton(player.storage.drlt_zhenrong,1,'请选择需要弃置的“荣”',true).ai=function(button){ + player.chooseCardButton(player.getExpansions('drlt_zhenrong'),1,'请选择需要弃置的“荣”',true).ai=function(button){ return 6-get.value(button.link); }; 'step 1' if(result.bool){ var cards=result.links; - for(var i=0;i