diff --git a/pattern.py b/pattern.py index e52b2b0..96e12e3 100644 --- a/pattern.py +++ b/pattern.py @@ -37,9 +37,9 @@ def sub(target, arg): def apply(targets, args, func): for target in range(len(targets)): - if this.values[targets[target].channel] != None: - this.values[targets[target].channel] = func( - this.values[targets[target].channel], args[target]) + if this.values[targets[target]['channel']] != None: + this.values[targets[target]['channel']] = func( + this.values[targets[target]['channel']], args[target]) this.instructions = {