From fde4df75edf9c6e2e90d7d3de85a0d1bda627da1 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Thu, 5 Oct 2023 10:58:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A6=E9=99=86=E9=80=8A=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/xianding.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/character/xianding.js b/character/xianding.js index f060428ed..20c7116b7 100644 --- a/character/xianding.js +++ b/character/xianding.js @@ -133,7 +133,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } else event.finish(); 'step 3' - var list=[]; + var list=[],shown=[] var piles=['cardPile','discardPile']; for(var pile of piles){ for(var i=0;i=cards.length) break; } } if(list.length>=cards.length) break; } if(list.length){ - player.gain(list,'gain2').gaintag.add('dcxiongmu_tag'); + var next=player.gain(list); + next.shown_cards=shown; + next.set('animate',function(event){ + var player=event.player,cards=event.cards,shown=event.shown_cards; + if(shown.length0){ + player.$gain2(shown,false); + game.log(player,'从弃牌堆获得了',shown); + } + return 500; + }); + next.gaintag.add('dcxiongmu_tag'); player.addSkill('dcxiongmu_tag'); } },