This commit is contained in:
2026-02-02 00:21:32 +08:00
parent d9025128e0
commit d6c84dd30d
9 changed files with 92 additions and 28 deletions
+1 -3
View File
@@ -188,9 +188,7 @@ func _try_use_powerup() -> bool:
var success = powerup_manager.use_special_effect()
if success:
print("[BotController] %s used power-up (reason: %s)" % [actor.name, eval.reason])
var main = get_tree().get_root().get_node_or_null("Main")
if main and main.has_method("broadcast_message"):
main.rpc("broadcast_message", actor.display_name, "Used a special power!")
NotificationManager.send_message(actor, NotificationManager.MESSAGES.USED_SPECIAL_POWER, NotificationManager.MessageType.POWERUP)
await _wait_with_variance(action_delay)
if not is_instance_valid(self): return true # Early exit if deleted