diff --git a/components/CardsGrouped.vue b/components/CardsGrouped.vue index 1fb5182..84c85f5 100644 --- a/components/CardsGrouped.vue +++ b/components/CardsGrouped.vue @@ -28,7 +28,12 @@ const props = withDefaults(defineProps(), { championsKillable: () => false, }); -const emit = defineEmits(["cardClick", "effectClick", "tokenClick"]); +const emit = defineEmits([ + "cardClick", + "effectClick", + "tokenClick", + "damageChampionClick", +]); const settingsStore = useSettingsStore(); @@ -115,7 +120,9 @@ function tokenClick(token: Effect, card: Card) { emit("tokenClick", { token, card }); } -function damageChampion() {} +function damageChampionClick(card: Card) { + emit("damageChampionClick", card); +} - diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 2bd2216..bdb0321 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -1,5 +1,6 @@