fix extra ready on game done

This commit is contained in:
ntr 2019-05-21 16:44:16 +10:00
parent 97facad440
commit 27a7a6e114
2 changed files with 7 additions and 5 deletions

View File

@ -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; -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; 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 { @-webkit-keyframes attack-hit {
0% { 0% {
-webkit-transform: translateY(-1000px) translateX(1000px); -webkit-transform: translateY(-5em) translateX(5em);
transform: translateY(-1000px) translateX(1000px); transform: translateY(-5em) translateX(5em);
opacity: 0; opacity: 0;
} }
100% { 100% {
@ -370,8 +370,8 @@ CRYP DAMAGE
} }
@keyframes attack-hit { @keyframes attack-hit {
0% { 0% {
-webkit-transform: translateY(-1000px) translateX(1000px); -webkit-transform: translateY(-5em) translateX(5em);
transform: translateY(-1000px) translateX(1000px); transform: translateY(-5em) translateX(5em);
opacity: 0; opacity: 0;
} }
100% { 100% {
@ -380,3 +380,4 @@ CRYP DAMAGE
opacity: 1; opacity: 1;
} }
} }
*/

View File

@ -47,6 +47,7 @@ function GamePanel(props) {
if (game.phase === 'Finish') { if (game.phase === 'Finish') {
sendInstanceState(game.instance); sendInstanceState(game.instance);
quit(); quit();
return true;
} }
if (resolution) { if (resolution) {