diff eosd @ 372:704bea2e4360

Use a future-proof ECL parser.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 06 Aug 2012 22:52:22 +0200
parents 74471afbac37
children 6deab6ad8be8
line wrap: on
line diff
--- a/eosd
+++ b/eosd
@@ -49,7 +49,8 @@ class EoSDGameBossRush(EoSDGame):
 
 
     def cleanup(self):
-        if not (self.boss or self.msg_wait or self.ecl_runner.boss_wait):
+        boss_wait = any(ecl_runner.boss_wait for ecl_runner in self.ecl_runners)
+        if not (self.boss or self.msg_wait or boss_wait):
             self.enemies = [enemy for enemy in self.enemies
                                 if enemy.boss_callback != -1 or enemy.frame > 1]
             self.lasers = [laser for laser in self.lasers if laser.frame > 1]