Skip to content

Commit

Permalink
Fix #8 : BTActionCallable expression result can be an int, not a BTTi…
Browse files Browse the repository at this point in the history
…ckResult !
  • Loading branch information
Earewien committed Jan 15, 2023
1 parent 1359c77 commit 9706e70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/yet_another_behavior_tree/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="Yet Another Behavior Tree"
description="A Behavior Tree implementation for Godot Engine"
author="Adrien Quillet"
version="1.1.0"
version="1.1.1"
script="yet_another_behavior_tree.gd"
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func tick(actor:Node2D, blackboard:BTBlackboard) -> int:
var result:Variant = _method_owner.callv(method_name, arguments)
if result is bool:
return BTTickResult.SUCCESS if result else BTTickResult.FAILURE
if result is BTTickResult:
if result is int:
return result
return BTTickResult.SUCCESS

Expand Down

0 comments on commit 9706e70

Please sign in to comment.