From 7468a2d5e4885ed94d3fe011ada88062ec27a896 Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 19 Mar 2026 21:41:30 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Berserker=20=E2=80=94=20Skills=20kosten?= =?UTF-8?q?=20keine=20Wut=20w=C3=A4hrend=20aktiv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _spend_rage() gibt direkt true zurück wenn is_berserker - Wut-Checks in execute_skill() nur wenn nicht is_berserker Co-Authored-By: Claude Sonnet 4.6 --- player.gd | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/player.gd b/player.gd index b0cba4b..0d44b36 100644 --- a/player.gd +++ b/player.gd @@ -553,6 +553,8 @@ func _gain_rage(amount: int): hud.update_resource(current_resource, max_resource, get_resource_name()) func _spend_rage(amount: int) -> bool: + if is_berserker: + return true # Während Berserker kostenlos if current_resource < amount: return false current_resource -= amount @@ -713,21 +715,18 @@ func execute_skill(skill_id: String): if target == null or not is_instance_valid(target): print("Kein Ziel!") return - # Wut-Check für Krieger-Skills - if skill_id in ["tektonischer_schlag"]: - if current_resource < TEKTONISCHER_SCHLAG_RAGE: + # Wut-Check für Krieger-Skills (während Berserker gratis) + if not is_berserker: + if skill_id == "tektonischer_schlag" and current_resource < TEKTONISCHER_SCHLAG_RAGE: print("Zu wenig Wut!") return - if skill_id == "blutrausch": - if current_resource < BLUTRAUSCH_RAGE: + if skill_id == "blutrausch" and current_resource < BLUTRAUSCH_RAGE: print("Zu wenig Wut!") return - if skill_id == "wirbelwind": - if current_resource < WIRBELWIND_RAGE: + if skill_id == "wirbelwind" and current_resource < WIRBELWIND_RAGE: print("Zu wenig Wut!") return - if skill_id == "zornfesseln": - if current_resource < ZORNFESSELN_RAGE: + if skill_id == "zornfesseln" and current_resource < ZORNFESSELN_RAGE: print("Zu wenig Wut!") return