diff pytouhou/vm/eclrunner.py @ 102:ad9297e0fbf2

Handle variables in ECL instruction 82
author Thibaut Girka <thib@sitedethib.com>
date Mon, 05 Sep 2011 00:41:23 +0200
parents 5c40cc1b8019
children 789994275968
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py
+++ b/pytouhou/vm/eclrunner.py
@@ -631,7 +631,7 @@ class ECLRunner(object):
 
     @instruction(82)
     def set_extended_bullet_attributes(self, *attributes):
-        self._enemy.extended_bullet_attributes = attributes
+        self._enemy.extended_bullet_attributes = tuple(self._getval(attr) for attr in attributes)
 
 
     @instruction(93)