diff pytouhou/vm/eclrunner.py @ 320:1a4ffdda8735

Cancel the bullets when a boss is killed and transfer them to the score.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 23 May 2012 19:33:17 +0200
parents 1366cefd0334
children 1bb78c469f64
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py
+++ b/pytouhou/vm/eclrunner.py
@@ -745,7 +745,7 @@ class ECLRunner(object):
     def end_spellcard(self):
         #TODO: return everything back to normal
         #TODO: give the spellcard bonus.
-        if self._game.spellcard:
+        if self._game.spellcard is not None:
             self._game.change_bullets_into_star_items()
         self._game.spellcard = None
         self._game.disable_spellcard_effect()