Fix the name.

This commit is contained in:
Tipx-L 2023-08-22 02:23:03 -07:00
parent 0fd3a38939
commit 6b7d7915a7
1 changed files with 4 additions and 4 deletions

View File

@ -10705,16 +10705,16 @@
recast:()=>{ recast:()=>{
'step 0' 'step 0'
game.log(player,'重铸了',cards); 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' 'step 1'
event.trigger('recast'); event.trigger('recast');
'step 2' 'step 2'
if(typeof event.recastingGain!='function') return; if(typeof event.recastingGain!='function') return;
event.recastingGainCards=event.recastingGain(player,cards); event.recastingGainedCards=event.recastingGain(player,cards);
if(get.itemtype(event.recastingGainCards)=='card') event.recastingGainCards=[event.recastingGainCards]; if(get.itemtype(event.recastingGainedCards)=='card') event.recastingGainedCards=[event.recastingGainedCards];
'step 3' 'step 3'
event.result=[]; 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); if(get.itemtype(result.cards)=='card') event.result.push(result.cards);
else if(get.itemtype(result.cards)=='cards') event.result.addArray(result.cards); else if(get.itemtype(result.cards)=='cards') event.result.addArray(result.cards);
if(get.itemtype(result)=='card') event.result.push(result); if(get.itemtype(result)=='card') event.result.push(result);