changeset 276:754ff6452d7e

Fix spellcard number 0. Spellcard number 0 was evaluated as False in truth checks. Now, the spellcard is a tuple, with (number, name) and will always evaluate as True.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 05 Feb 2012 23:45:41 +0100
parents 4b0570bf5847
children 219edad0f395
files pytouhou/vm/eclrunner.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py
+++ b/pytouhou/vm/eclrunner.py
@@ -781,11 +781,11 @@ class ECLRunner(object):
 
 
     @instruction(93)
-    def set_spellcard(self, unknown, number, name):
+    def set_spellcard(self, face, number, name):
         #TODO: display it on the game.
         #TODO: make the enemies more resistants (and find how).
         self._game.change_bullets_into_star_items()
-        self._game.spellcard = number
+        self._game.spellcard = (number, name)
         self._game.enable_effect()