added animation end in playCardNotification

This commit is contained in:
Cedric Beck
2024-12-09 02:30:15 +01:00
parent 3f93d6e569
commit 6ecf5a66bf
2 changed files with 4 additions and 4 deletions

View File

@@ -174,11 +174,11 @@ private void handleGame(Notification notification) {
} else if (notification instanceof PlayCardNotification n) {
if(n.getCard() == BonusCard.TURBO) {
guiHandler.turbo();
app.getModelSynchronize().animationEnd();
}
if(n.getColor() == ownColor) guiHandler.playCardOwn(n.getCard());
else guiHandler.playCardEnemy(n.getColor(), n.getCard());
app.getModelSynchronize().animationEnd();
} else if (notification instanceof PlayerInGameNotification n) {
boardHandler.addPlayer(n.getColor(),n.getPiecesList());
guiHandler.addPlayer(n.getColor(),n.getName());