Skip to content

Commit 9706e70

Browse files
committed
Fix Earewien#8 : BTActionCallable expression result can be an int, not a BTTickResult !
1 parent 1359c77 commit 9706e70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addons/yet_another_behavior_tree/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="Yet Another Behavior Tree"
44
description="A Behavior Tree implementation for Godot Engine"
55
author="Adrien Quillet"
6-
version="1.1.0"
6+
version="1.1.1"
77
script="yet_another_behavior_tree.gd"

addons/yet_another_behavior_tree/src/Nodes/Leaves/BTActionCallable.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func tick(actor:Node2D, blackboard:BTBlackboard) -> int:
6363
var result:Variant = _method_owner.callv(method_name, arguments)
6464
if result is bool:
6565
return BTTickResult.SUCCESS if result else BTTickResult.FAILURE
66-
if result is BTTickResult:
66+
if result is int:
6767
return result
6868
return BTTickResult.SUCCESS
6969

0 commit comments

Comments
 (0)