diff --git a/client/src/battle/summonUtils.js b/client/src/battle/summonUtils.js index 4fe7d3c..d75939d 100644 --- a/client/src/battle/summonUtils.js +++ b/client/src/battle/summonUtils.js @@ -115,7 +115,7 @@ export const summonEffect = ({ else if (creature.cardId === 18) { if (magicalCount > 0) { increaseEnergy(1); - healHero(1); + healHero(2); } } diff --git a/client/src/contexts/replayContext.jsx b/client/src/contexts/replayContext.jsx index 704de9d..c4d4ae2 100644 --- a/client/src/contexts/replayContext.jsx +++ b/client/src/contexts/replayContext.jsx @@ -89,7 +89,7 @@ export const ReplayProvider = ({ children }) => { battle.utils.resetBattleState() game.endGame() - + navigate('/') } @@ -109,7 +109,7 @@ export const ReplayProvider = ({ children }) => { } } - const spectateGame = (game) => { + const spectateGame = (game) => { setSpectatingGame(game) } @@ -131,6 +131,11 @@ export const ReplayProvider = ({ children }) => { } } + const gameEffects = events.find(e => e.componentName === 'GameEffects') + if (gameEffects) { + game.setGameEffects(gameEffects) + } + const draftValues = events.find(e => e.componentName === 'Draft') if (draftValues) { draft.update.setCards(draftValues.cards.map(card => CARD_DETAILS(card)))