changeset 357:26f78fc7acea

Fix Koakuma
author Thibaut Girka <thib@sitedethib.com>
date Sun, 08 Jul 2012 01:20:47 +0200
parents a5595de3fe7e
children 488c094ed51d
files pytouhou/game/enemy.py
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -396,14 +396,16 @@ class Enemy(object):
                     return
 
                 if death_flags == 1:
-                    self.boss = False #TODO: really?
-                    self._game.boss = None
+                    if self.boss:
+                        self.boss = False #TODO: really?
+                        self._game.boss = None
                     self.touchable = False
                 elif death_flags == 2:
                     pass # Just that?
                 elif death_flags == 3:
-                    self.boss = False #TODO: really?
-                    self._game.boss = None
+                    if self.boss:
+                        self.boss = False #TODO: really?
+                        self._game.boss = None
                     self.damageable = False
                     self.life = 1
                     self.death_flags = 0