diff pytouhou/game/enemy.py @ 358:488c094ed51d

Make bosses clean their mess when timeouting
author Thibaut Girka <thib@sitedethib.com>
date Sun, 08 Jul 2012 01:23:47 +0200
parents 26f78fc7acea
children 7dc012f631dc
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -420,6 +420,8 @@ class Enemy(object):
             self.timeout_callback = -1
         elif self.timeout != -1 and self.frame == self.timeout:
             self.timeout = -1
+            self._game.kill_enemies()
+            self._game.cancel_bullets()
 
             if self.low_life_trigger > 0:
                 self.life = self.low_life_trigger