fix: prevent multiple attack/smash SFX spam by clearing charged strike state immediately
This commit is contained in:
@@ -358,6 +358,10 @@ func try_push(target_pos: Vector2i, direction: Vector2i) -> bool:
|
||||
# Consume all available boost to force a full recharge cycle
|
||||
player.powerup_manager.consume_boost(100.0)
|
||||
|
||||
# NEW: Always clear charged strike state to prevent multi-hit spam
|
||||
if player.get("is_charged_strike"):
|
||||
player.set("is_charged_strike", false)
|
||||
|
||||
# SCORING: 200 Points for successful attack (ONLY in Free Mode)
|
||||
if player.is_multiplayer_authority():
|
||||
var is_sng = LobbyManager.is_game_mode(GameMode.Mode.STOP_N_GO)
|
||||
|
||||
Reference in New Issue
Block a user