comparison pytouhou/games/eosd.py @ 348:685b782a4da4

Fix issue when disabling low life trigger
author Thibaut Girka <thib@sitedethib.com>
date Thu, 05 Jul 2012 01:06:02 +0200
parents b150ed7188a2
children 96e30d6268dd
comparison
equal deleted inserted replaced
347:b150ed7188a2 348:685b782a4da4
149 self.boss_items[1].maximum = self.game.boss._enemy.life 149 self.boss_items[1].maximum = self.game.boss._enemy.life
150 self.boss_items[2].maximum = self.game.boss._enemy.life 150 self.boss_items[2].maximum = self.game.boss._enemy.life
151 151
152 152
153 def set_spell_life(self): 153 def set_spell_life(self):
154 self.boss_items[2].set_value(self.game.boss._enemy.low_life_trigger) 154 self.boss_items[2].set_value(self.game.boss._enemy.low_life_trigger if self.game.boss else 0)
155 155
156 156
157 def update(self): 157 def update(self):
158 for elem in self.items: 158 for elem in self.items:
159 elem.update() 159 elem.update()