From 4dbc6a2a4dcf4e8ca64755a1d02c9927744a65d6 Mon Sep 17 00:00:00 2001 From: Patrick Mueller Date: Fri, 16 Sep 2022 15:28:01 +0200 Subject: [PATCH] Adding point for winning against the elders --- src/app/components/add-game/add-game.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/components/add-game/add-game.component.ts b/src/app/components/add-game/add-game.component.ts index c101b25..81206a9 100644 --- a/src/app/components/add-game/add-game.component.ts +++ b/src/app/components/add-game/add-game.component.ts @@ -405,6 +405,11 @@ export class AddGameComponent implements OnInit { winningTeam = winningTeam === Team.RE ? Team.CONTRA : Team.RE; } + if(winningTeam === Team.CONTRA) { + // Against the elders + gameScore++; + } + // Double Score in case of announcement if (this.checkAnnouncementActive(announcements.Announcement.RE)) { gameScore *= 2;