diff --git a/src/blocks/Block.as b/src/blocks/Block.as index aeb233d..04510c8 100644 --- a/src/blocks/Block.as +++ b/src/blocks/Block.as @@ -299,13 +299,22 @@ public class Block extends Sprite { } public function showRunFeedback():void { - if (!filters || (filters.length == 0)) { - filters = runFeedbackFilters(); + if (filters && filters.length > 0) { + for each (var f:* in filters) { + if (f is GlowFilter) return; + } } + filters = runFeedbackFilters().concat(filters || []); } public function hideRunFeedback():void { - if (filters && (filters.length > 0)) filters = []; + if (filters && filters.length > 0) { + var newFilters:Array = []; + for each (var f:* in filters) { + if (!(f is GlowFilter)) newFilters.push(f); + } + filters = newFilters; + } } private function runFeedbackFilters():Array {