blueshell
Advanced tools
Comparing version 5.0.1-whileRunningCheck.1 to 5.0.1-whileRunningCheck.2
@@ -25,3 +25,3 @@ "use strict"; | ||
const storage = this.getNodeStorage(state); | ||
if (storage.lastLoopResult === models_1.rc.RUNNING || this.conditional(state, event)) { | ||
if (storage.running !== undefined || this.conditional(state, event)) { | ||
if (storage.beganAtLeastOneLoop) { | ||
@@ -44,3 +44,3 @@ Base_1.Action.treePublisher.publishResult(state, event, false); | ||
// yield to the behavior tree because the child node is running | ||
storage.lastLoopResult = res; | ||
storage.running = 0; | ||
return res; | ||
@@ -47,0 +47,0 @@ } |
@@ -35,3 +35,3 @@ import { ResultCode, BlueshellState, BaseNode, rc, Conditional, NodeStorage } from '../../models'; | ||
if (storage.lastLoopResult === rc.RUNNING || this.conditional(state, event)) { | ||
if (storage.running !== undefined || this.conditional(state, event)) { | ||
if (storage.beganAtLeastOneLoop) { | ||
@@ -56,3 +56,3 @@ Action.treePublisher.publishResult(state, event, false); | ||
// yield to the behavior tree because the child node is running | ||
storage.lastLoopResult = res; | ||
storage.running = 0; | ||
return res; | ||
@@ -59,0 +59,0 @@ } else if (storage.break) { |
@@ -111,3 +111,3 @@ { | ||
"types": "dist/index.d.ts", | ||
"version": "5.0.1-whileRunningCheck.1" | ||
"version": "5.0.1-whileRunningCheck.2" | ||
} |
Sorry, the diff of this file is not supported yet
526995