From 558f35a3404cbe338b81a66376c6c029eed4c28a Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Tue, 26 Sep 2023 12:51:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8A=E5=BE=BD=E7=91=9C=20getHistory?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/yingbian.js | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/character/yingbian.js b/character/yingbian.js index 01f9d6c76..d78af45e7 100644 --- a/character/yingbian.js +++ b/character/yingbian.js @@ -2312,32 +2312,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){ forced:true, preHidden:true, filter:function(event,player){ - return !player.hasSkill('caiyuan_mark')&&player.phaseNumber>1; + if(player.phaseNumber<=1) return false; + const history1=_status.globalHistory,history2=player.actionHistory; + for(let i=0;i0&&history2[i2].isMe) break; + if(history1[i1].changeHp.some(evt=>evt.player==player&&evt.num<0)) return false; + } + return true; }, content:function(){ player.draw(2); }, - group:'caiyuan_count', - subSkill:{ - mark:{ - //mark:true, - marktext:'媛', - charlotte:true, - intro:{content:'已扣减过体力'}, - }, - count:{ - trigger:{player:'changeHp'}, - silent:true, - charlotte:true, - filter:function(event,player){ - return event.num<0&&!player.hasSkill('caiyuan_mark'); - }, - content:function(){ - player.addTempSkill('caiyuan_mark',{player:'phaseAfter'}); - if(player.hasSkill('caiyuan')) player.markSkill('caiyuan_mark'); - }, - }, - }, }, zhuosheng:{ audio:2, @@ -3704,7 +3690,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ ciwei:'慈威', ciwei_info:'一名角色于其回合内使用第二张牌时,若此牌为基本牌或普通锦囊牌,则你可以弃置一张牌,取消此牌的所有目标。', caiyuan:'才媛', - caiyuan_info:'锁定技,当你扣减体力时,你获得一枚“才媛”标记直到你的下回合结束。回合结束时,若你没有“才媛”标记且此回合不是你的第一个回合,则 你摸两张牌。', + caiyuan_info:'锁定技。回合结束时,若你于你的上一个回合结束后未扣减过体力,则你摸两张牌。', simazhou:'司马伷', caiwang:'才望', caiwang_info:'当你使用或打出牌响应其他角色使用的牌,或其他角色使用或打出牌响应你使用的牌后,若这两张牌颜色相同,则你可以弃置对方的一张牌。',