]> purplebirdman git - frog-ninja.git/blobdiff - asset/character/model/state/state.gd
Squashed commit of the following:
[frog-ninja.git] / asset / character / model / state / state.gd
index 04c2219048ddee99b85ced17ae78e246d7dd5206..3b6914341e12b421799d294957a253abb7a85540 100644 (file)
@@ -90,10 +90,11 @@ func _when_animation_finished(_anim_name: StringName):
 
 
 func check_combos(input: InputPacket):
 
 
 func check_combos(input: InputPacket):
-       for combo: Combo in get_children():
-               if combo.is_triggered(input):
-                       queued_state_name = combo.triggered_state_name
-                       has_queued_state = true
+       for node in get_children():
+               if node is Combo:
+                       if node.is_triggered(input):
+                               queued_state_name = node.triggered_state_name
+                               has_queued_state = true
 
 
 func ok_to_queue_next_state() -> bool:
 
 
 func ok_to_queue_next_state() -> bool: