From 6b7d7915a7842161aba0fcc0e63e7c10af640c18 Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Tue, 22 Aug 2023 02:23:03 -0700 Subject: [PATCH] Fix the name. --- game/game.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game/game.js b/game/game.js index ec40dac61..6d2678cfe 100644 --- a/game/game.js +++ b/game/game.js @@ -10705,16 +10705,16 @@ recast:()=>{ 'step 0' game.log(player,'重铸了',cards); - if(typeof event.recastingLose=='function') event.recastingLoseCards=event.recastingLose(player,cards); + if(typeof event.recastingLose=='function') event.recastingLostCards=event.recastingLose(player,cards); 'step 1' event.trigger('recast'); 'step 2' if(typeof event.recastingGain!='function') return; - event.recastingGainCards=event.recastingGain(player,cards); - if(get.itemtype(event.recastingGainCards)=='card') event.recastingGainCards=[event.recastingGainCards]; + event.recastingGainedCards=event.recastingGain(player,cards); + if(get.itemtype(event.recastingGainedCards)=='card') event.recastingGainedCards=[event.recastingGainedCards]; 'step 3' event.result=[]; - if(get.itemtype(event.recastingGainCards)=='cards') event.result.addArray(event.recastingGainCards); + if(get.itemtype(event.recastingGainedCards)=='cards') event.result.addArray(event.recastingGainedCards); if(get.itemtype(result.cards)=='card') event.result.push(result.cards); else if(get.itemtype(result.cards)=='cards') event.result.addArray(result.cards); if(get.itemtype(result)=='card') event.result.push(result);