comparison pytouhou/games/eosd.py @ 356:a5595de3fe7e

Fix crasher
author Thibaut Girka <thib@sitedethib.com>
date Sun, 08 Jul 2012 00:42:17 +0200
parents a628b48a745f
children e0e284fcb288
comparison
equal deleted inserted replaced
355:b5ab2ad06de8 356:a5595de3fe7e
144 for item in self.boss_items: 144 for item in self.boss_items:
145 item.sprite.allow_dest_offset = True #XXX 145 item.sprite.allow_dest_offset = True #XXX
146 146
147 147
148 def set_boss_life(self): 148 def set_boss_life(self):
149 if not self.game.boss:
150 return
149 self.boss_items[1].maximum = self.game.boss._enemy.life or 1 151 self.boss_items[1].maximum = self.game.boss._enemy.life or 1
150 self.boss_items[2].maximum = self.game.boss._enemy.life or 1 152 self.boss_items[2].maximum = self.game.boss._enemy.life or 1
151 153
152 154
153 def set_spell_life(self): 155 def set_spell_life(self):