diff --git a/src/games/services/effect.functions.ts b/src/games/services/effect.functions.ts index 299c799..b70cd20 100644 --- a/src/games/services/effect.functions.ts +++ b/src/games/services/effect.functions.ts @@ -20,6 +20,21 @@ export const effectMappings = { operation: effect.amount, }); }, + + [CardEffects.DAMAGE]: ( + game: Document & Game, + effect: Effect, + _player: Player, + _card: Card, + eventEmitter: EventEmitter2, + ) => { + game.currentTurn.damage += effect.amount; + eventEmitter.emit('sse.game.' + game._id.toHexString(), { + type: 'currentTurn.updateDamage', + damage: game.currentTurn.damage, + operation: effect.amount, + }); + }, } as Record< CardEffects, (