blueshell
Advanced tools
Comparing version 5.0.1-cliRemoved.1 to 5.0.1-whileRunningCheck.1
@@ -25,3 +25,3 @@ "use strict"; | ||
const storage = this.getNodeStorage(state); | ||
if (storage.running || this.conditional(state, event)) { | ||
if (storage.lastLoopResult === models_1.rc.RUNNING || this.conditional(state, event)) { | ||
if (storage.beganAtLeastOneLoop) { | ||
@@ -44,2 +44,3 @@ Base_1.Action.treePublisher.publishResult(state, event, false); | ||
// yield to the behavior tree because the child node is running | ||
storage.lastLoopResult = res; | ||
return res; | ||
@@ -46,0 +47,0 @@ } |
@@ -35,3 +35,3 @@ import { ResultCode, BlueshellState, BaseNode, rc, Conditional, NodeStorage } from '../../models'; | ||
if (storage.running || this.conditional(state, event)) { | ||
if (storage.lastLoopResult === rc.RUNNING || this.conditional(state, event)) { | ||
if (storage.beganAtLeastOneLoop) { | ||
@@ -56,2 +56,3 @@ Action.treePublisher.publishResult(state, event, false); | ||
// yield to the behavior tree because the child node is running | ||
storage.lastLoopResult = res; | ||
return res; | ||
@@ -58,0 +59,0 @@ } else if (storage.break) { |
@@ -40,3 +40,3 @@ { | ||
"@6river/prettier-config": "^1.1.8", | ||
"@commitlint/cli": "^17.6.1", | ||
"@commitlint/cli": "^13.2.1", | ||
"@types/archy": "0.0.31", | ||
@@ -112,3 +112,3 @@ "@types/chai": "4.2.8", | ||
"types": "dist/index.d.ts", | ||
"version": "5.0.1-cliRemoved.1" | ||
"version": "5.0.1-whileRunningCheck.1" | ||
} |
Sorry, the diff of this file is not supported yet
527048
8581