From 27a7a6e1144da91e3da12481bcd6d9dc3b744240 Mon Sep 17 00:00:00 2001 From: ntr Date: Tue, 21 May 2019 16:44:16 +1000 Subject: [PATCH] fix extra ready on game done --- client/assets/styles/game.css | 11 ++++++----- client/src/components/game.component.jsx | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/client/assets/styles/game.css b/client/assets/styles/game.css index 923374fe..98bc139a 100644 --- a/client/assets/styles/game.css +++ b/client/assets/styles/game.css @@ -321,7 +321,7 @@ CRYP DAMAGE * ---------------------------------------------- */ -.attack-cast { +/*.attack-cast { -webkit-animation: attack-cast 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both; animation: attack-cast 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both; } @@ -358,8 +358,8 @@ CRYP DAMAGE @-webkit-keyframes attack-hit { 0% { - -webkit-transform: translateY(-1000px) translateX(1000px); - transform: translateY(-1000px) translateX(1000px); + -webkit-transform: translateY(-5em) translateX(5em); + transform: translateY(-5em) translateX(5em); opacity: 0; } 100% { @@ -370,8 +370,8 @@ CRYP DAMAGE } @keyframes attack-hit { 0% { - -webkit-transform: translateY(-1000px) translateX(1000px); - transform: translateY(-1000px) translateX(1000px); + -webkit-transform: translateY(-5em) translateX(5em); + transform: translateY(-5em) translateX(5em); opacity: 0; } 100% { @@ -380,3 +380,4 @@ CRYP DAMAGE opacity: 1; } } +*/ \ No newline at end of file diff --git a/client/src/components/game.component.jsx b/client/src/components/game.component.jsx index fcd345e5..51a33c98 100644 --- a/client/src/components/game.component.jsx +++ b/client/src/components/game.component.jsx @@ -47,6 +47,7 @@ function GamePanel(props) { if (game.phase === 'Finish') { sendInstanceState(game.instance); quit(); + return true; } if (resolution) {