Fix issue where edge-activated hats only run on one sprite when sprite is duplicated or cloned.

This commit is contained in:
Karishma Chadha 2018-12-11 12:28:37 -05:00
parent 532e63da15
commit 19737d4e39
4 changed files with 101 additions and 3 deletions
src/engine

View file

@ -65,6 +65,7 @@ const handleReport = function (resolvedValue, sequencer, thread, blockCached, la
if (!thread.stackClick) {
const oldEdgeValue = sequencer.runtime.updateEdgeActivatedValue(
currentBlockId,
thread.target.id,
resolvedValue
);
const edgeWasActivated = !oldEdgeValue && resolvedValue;