feature updates
This commit is contained in:
@@ -63,6 +63,17 @@ func start_game(first_player: int = -1) -> void:
|
||||
players[1].draw_cards(5)
|
||||
|
||||
game_active = true
|
||||
|
||||
# Connect ability system if available
|
||||
var ability_system = Engine.get_singleton("AbilitySystem")
|
||||
if ability_system == null:
|
||||
# Try getting from scene tree (autoload)
|
||||
var tree = Engine.get_main_loop()
|
||||
if tree and tree.root.has_node("AbilitySystem"):
|
||||
ability_system = tree.root.get_node("AbilitySystem")
|
||||
if ability_system:
|
||||
ability_system.connect_to_game(self)
|
||||
|
||||
turn_manager.start_game(first_player)
|
||||
|
||||
game_started.emit()
|
||||
|
||||
Reference in New Issue
Block a user