update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user