From 2f7dc5fbe7e7ea991b3dd8fb38b8de7d4e7cffe0 Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Wed, 30 Aug 2023 19:13:03 -0700 Subject: [PATCH] Oops. --- card/yingbian.js | 4 ++-- game/game.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/card/yingbian.js b/card/yingbian.js index 0fd190613..8c17e989e 100644 --- a/card/yingbian.js +++ b/card/yingbian.js @@ -364,10 +364,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){ global:'heiguangkai_ai', }, tongque_skill:{ - trigger:{player:'useCardBegin'}, + trigger:{player:'yingbian'}, equipSkill:true, forced:true, - filter:(event,player)=>get.is.yingbianConditional(event.card)&&!player.hasHistory('useCard',evt=>get.is.yingbianConditional(evt.card)), + filter:(event,player)=>get.is.yingbianConditional(event.card)&&player.getHistory('useCard',evt=>get.is.yingbianConditional(evt.card)).length<2, content:()=>{ trigger.forceYingbian=true; } diff --git a/game/game.js b/game/game.js index a9c41e5d4..c1695b87b 100644 --- a/game/game.js +++ b/game/game.js @@ -54671,7 +54671,7 @@ }, verticalStr:function(str,sp){ if(typeof str!='string') return ''; - return [...str].filter(value=>value!='`').join(''); + return Array.from(str).filter(value=>value!='`').join(''); }, numStr:function(num,method){ if(num==Infinity){