From e85f402d11318be22843bf068252765154702d35 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Mon, 25 Aug 2025 22:21:04 +0200 Subject: [PATCH] =?UTF-8?q?feat(match3):=20Hinzuf=C3=BCgen=20von=20Logik?= =?UTF-8?q?=20zur=20Verhinderung=20von=20Power-Up-Matches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Implementierung einer Überprüfung, die sicherstellt, dass Raketen-Power-ups nicht in Kombination mit anderen Tiles gematcht werden können, um die Spielmechanik zu verbessern. --- frontend/src/views/minigames/Match3Game.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/views/minigames/Match3Game.vue b/frontend/src/views/minigames/Match3Game.vue index 22a1324..dd0610a 100644 --- a/frontend/src/views/minigames/Match3Game.vue +++ b/frontend/src/views/minigames/Match3Game.vue @@ -1183,6 +1183,11 @@ export default { const type2 = board[index2].type; const type3 = board[index3].type; + // Power-ups können nicht gematcht werden + if (this.isRocketTile(type1) || this.isRocketTile(type2) || this.isRocketTile(type3)) { + return false; + } + return type1 === type2 && type2 === type3; },