From c23f7748f8a4e6b0327df57607934c68a49f59c7 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Thu, 9 May 2024 23:02:56 +0200 Subject: [PATCH] fix make discard behaviour --- components/MarketCards.vue | 25 +++++++++++-------------- components/PlayerSlot.vue | 30 +++++++++++++++++------------- components/PlayerStats.vue | 2 +- components/SelfView.vue | 4 ++-- 4 files changed, 31 insertions(+), 30 deletions(-) diff --git a/components/MarketCards.vue b/components/MarketCards.vue index 924cf28..3f868bf 100644 --- a/components/MarketCards.vue +++ b/components/MarketCards.vue @@ -14,18 +14,16 @@ const isTurn = computed(() => goStore.self && goStore.game?.started && (goStore. @@ -37,12 +35,12 @@ const isTurn = computed(() => goStore.self && goStore.game?.started && (goStore. BUY @@ -62,6 +60,5 @@ const isTurn = computed(() => goStore.self && goStore.game?.started && (goStore. } .separator { - width: 50px; -} + width: 50px;} \ No newline at end of file diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 97cacfd..de4d703 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -34,7 +34,7 @@ function run_effect( effect_type: CardEffects, target: Player | Card ) { - const effect = goStore.self?.turn.find_effect(effect_type).value; + const effect = goStore.self?.turn.find_effect(effect_type); if (!effect) { return; } @@ -65,15 +65,14 @@ const restack_discarded_card = (target: Card) => run_effect(CardEffects.RESTACK_ diff --git a/components/PlayerStats.vue b/components/PlayerStats.vue index 031ab4d..fdc13a1 100644 --- a/components/PlayerStats.vue +++ b/components/PlayerStats.vue @@ -13,7 +13,7 @@ const props = defineProps()