diff --git a/src/components/ingame/HandC.vue b/src/components/ingame/HandC.vue index 77b90a1..6173df6 100644 --- a/src/components/ingame/HandC.vue +++ b/src/components/ingame/HandC.vue @@ -25,9 +25,8 @@ function triggerWiggle(index: number) { function handlePlayCard(index: number | null) { if (index === null) return - wb.sendAndWait("PlayCard", { cardindex: index }).catch((error) => { + wb.sendAndWait((wi.data)?.self?.dogLife ? "PlayDogCard" : "PlayCard", { cardindex: index }).catch((error) => { triggerWiggle(index) - $q.notify({ message: error.message, color: "negative", @@ -45,7 +44,13 @@ function onBeforeLeave(el: Element) { element.style.height = height; } function handleSkipDogLife() { - //TODO: Add some animation or feedback for skipping turn + wb.sendAndWait("PlayDogCard", { cardindex: 'Skip' }).catch((error) => { + $q.notify({ + message: error.message, + color: "negative", + position: "top" + }) + }) } function getCardImagePath(cardPath: string) {