From 4c7f04e915b914b951ff5180febb113c37172960 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Sun, 17 Sep 2023 21:23:38 +0800 Subject: [PATCH] =?UTF-8?q?OL=E5=BD=AD=E7=BE=95=20=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=9D=80=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/character/sp.js b/character/sp.js index b838508a5..73e7cd1ff 100755 --- a/character/sp.js +++ b/character/sp.js @@ -1117,10 +1117,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){ sourceSkill:'olqifan', precontent:function(){ delete event.result.skill; - var name=event.result.card.name; - event.result.cards=event.result.card.cards.slice(0); - event.result.card=get.autoViewAs({name:name,isCard:true},event.result.cards); - player.markAuto('olqifan',[get.type2(event.result.card,false)]); + var name=event.result.card.name,cards=event.result.card.cards.slice(0); + event.result.cards=cards; + var rcard=cards[0],card; + if(rcard.name==name) card=get.autoViewAs(rcard); + else card=get.autoViewAs({name,isCard:true}); + event.result.card=card; + player.markAuto('olqifan',[get.type2(card,false)]); event.getParent().set('olqifan_discard',true); player.addTempSkill('olqifan_discard'); }, @@ -21740,10 +21743,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ sourceSkill:'aocai', precontent:function(){ delete event.result.skill; - var name=event.result.card.name; - event.result.cards=event.result.card.cards; - event.result.card=get.autoViewAs(event.result.cards[0]); - event.result.card.name=name; + var name=event.result.card.name,cards=event.result.card.cards.slice(0); + event.result.cards=cards; + var rcard=cards[0],card; + if(rcard.name==name) card=get.autoViewAs(rcard); + else card=get.autoViewAs({name,isCard:true}); + event.result.card=card; }, filterCard:function(){return false}, selectCard:-1,