From 47cec9f6ccfc98614898caf9d4ea427ecc8bcb7d Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Fri, 16 Feb 2024 20:43:02 +0800 Subject: [PATCH] =?UTF-8?q?OL=E8=83=A1=E9=87=91=E5=AE=9A=E3=80=90=E9=87=8D?= =?UTF-8?q?=E8=BA=AB=E3=80=91bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/character/sp.js b/character/sp.js index 30aa3bd94..544f5bca8 100755 --- a/character/sp.js +++ b/character/sp.js @@ -779,7 +779,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ order:2, respondShan:true, skillTagFilter(player,tag,arg){ - if(arg=='respond'||!player.countCards('h',card=>card.hasGaintag('olchongshen'))) return false; + if(arg=='respond'||!player.countCards('h',card=>_status.connectMode||card.hasGaintag('olchongshen'))) return false; }, effect:{ target(card,player,target,current){ @@ -790,8 +790,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ group:'olchongshen_mark', mod:{ aiValue(player,card,num){ - if(get.name(card)!='shan'&&!card.hasGaintag('olchongshen')) return; - var cards=player.getCards('hs',card=>get.name(card)=='shan'||card.hasGaintag('olchongshen')); + if(get.name(card)!='shan'&&(get.itemtype(card)=='card'&&!card.hasGaintag('olchongshen'))) return; + let cards=player.getCards('hs',card=>get.name(card)=='shan'||card.hasGaintag('olchongshen')); cards.sort((a,b)=>(get.name(b)=='shan'?1:2)-(get.name(a)=='shan'?1:2)); const geti=()=>{ if(cards.includes(card)) return cards.indexOf(card);