Commit 235328e6 authored by Dennis Willers's avatar Dennis Willers 🏀

First proof if point is removed, then look for a new card

parent 2deeb825
Pipeline #345 passed with stages
in 5 minutes and 27 seconds
...@@ -144,7 +144,6 @@ export class GameComponent implements OnInit, OnDestroy { ...@@ -144,7 +144,6 @@ export class GameComponent implements OnInit, OnDestroy {
} }
wrongAnswer(): void { wrongAnswer(): void {
this.newCard();
if (this.isExplainer) { if (this.isExplainer) {
this.service.removePoint this.service.removePoint
({ ({
...@@ -154,6 +153,7 @@ export class GameComponent implements OnInit, OnDestroy { ...@@ -154,6 +153,7 @@ export class GameComponent implements OnInit, OnDestroy {
blue: this.gameStatus.blue, blue: this.gameStatus.blue,
cardID: this.gameStatus.activeCard cardID: this.gameStatus.activeCard
}).then(value => { }).then(value => {
this.newCard();
this.gameStatus.red = JSON.parse(value.red); this.gameStatus.red = JSON.parse(value.red);
this.gameStatus.blue = JSON.parse(value.blue); this.gameStatus.blue = JSON.parse(value.blue);
}); });
...@@ -172,6 +172,7 @@ export class GameComponent implements OnInit, OnDestroy { ...@@ -172,6 +172,7 @@ export class GameComponent implements OnInit, OnDestroy {
blue: this.gameStatus.blue, blue: this.gameStatus.blue,
cardID: this.gameStatus.activeCard cardID: this.gameStatus.activeCard
}).then(value => { }).then(value => {
this.newCard();
this.gameStatus.red = JSON.parse(value.red); this.gameStatus.red = JSON.parse(value.red);
this.gameStatus.blue = JSON.parse(value.blue); this.gameStatus.blue = JSON.parse(value.blue);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment