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;
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;
}
}
*/

View File

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