From 4d68edbf01f17e4b5b7b12f5b9b03cd65527bdad Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Sat, 28 Oct 2023 14:11:51 +0800 Subject: [PATCH] =?UTF-8?q?star=E6=9B=B9=E4=BB=81=E3=80=90=E7=A0=BA?= =?UTF-8?q?=E9=94=8B=E3=80=91ai=E4=BC=98=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp2.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/character/sp2.js b/character/sp2.js index f6f932dc0..d4494cea2 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -138,7 +138,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ audio:2, enable:'chooseToUse', filter:function(event,player){ - if(!event.filterCard({name:'sha'})&&!event.filterCard({name:'wuxie'})) return false; + if(!event.filterCard({name:'sha'},player,event)&&!event.filterCard({name:'wuxie'},player,event)) return false; return player.countCards('h',card=>{ return !player.getStorage('starlifeng_count').contains(get.color(card,player))||_status.connectMode; }); @@ -151,7 +151,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return ui.create.dialog('砺锋',[list,'vcard']); }, check:function(button){ - return _status.event.player.getUseValue({name:button.link[2],nature:button.link[3]}); + var player=_status.event.player; + return _status.event.getParent().type=='phase'?player.getUseValue({name:button.link[2]}):1 }, backup:function(links,player){ return { @@ -197,6 +198,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ })) return false; }, order:10, + result:{player:1}, }, group:'starlifeng_mark', subSkill:{